@extends('layouts.app') @section('content')

Voice Prompts

Upload and manage custom audio recordings for IVRs, announcements, and greetings.
@if (session('success')) @endif @if (session('error')) @endif @if ($errors->any())
@endif
{{-- Upload form --}}
Upload New Prompt
@csrf
WAV (recommended), MP3, GSM, OGG. Max 10MB. MP3/OGG auto-converts to WAV.
Used as filename. Leave blank to keep original name.
Tips

Best format: WAV, 8kHz, 16-bit, Mono

Usage: Reference prompts by filename (without extension) in IVRs and announcements.

Path: /var/lib/asterisk/sounds/custom/

{{-- File list --}}
Uploaded Prompts {{ count($files) }}
@forelse ($files as $f) @empty @endforelse
Filename Format Size Modified Actions
{{ $f['basename'] }} .{{ $f['extension'] }} {{ strtoupper($f['extension']) }} {{ number_format($f['size'] / 1024, 1) }} KB {{ $f['modified'] }}
@csrf @method('DELETE')
No custom voice prompts uploaded yet.
{{-- Audio player --}} @endsection