@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif @if ($errors->any()) @endif @if (!session()->has('selectedDevice'))
{{ __('Please select a device first') }}
@else @php $settings = $device->aibotvoice_settings ? json_decode($device->aibotvoice_settings, true) : []; $voiceConfig = $settings['ai_bot_voice'] ?? []; $enabled = $voiceConfig['enabled'] ?? false; $apiKey = $voiceConfig['api_key'] ?? ''; $autoRespond = $voiceConfig['auto_respond'] ?? true; $useChatHistory = $voiceConfig['use_chat_history'] ?? true; $includeTranscription = $voiceConfig['include_transcription'] ?? false; $showAgentIndicator = $voiceConfig['show_agent_indicator'] ?? true; $agentName = $voiceConfig['agent_name'] ?? ''; $responseType = $voiceConfig['response_type'] ?? 'text'; $language = $voiceConfig['language'] ?? 'pt'; $model = $voiceConfig['model'] ?? 'whisper-1'; @endphp
{{__('AI Bot Voice Configuration')}}
@csrf
{{__('Enable Voice Bot')}}

{{__('Activate automatic audio transcription and response')}}

{{__('OpenAI API Configuration')}}
{{__('Get your API key from')}} OpenAI Platform
{{__('Transcription model to use')}}
{{__('Improves accuracy when language is known')}}
{{__('Response Settings')}}
{{__('Automatically send transcribed text back to sender')}}
{{__('Remember previous messages (audio and text) for contextual responses. Requires ChatGPT/Gemini/Claude configured.')}}
{{__('Optional name shown in bot responses')}}
{{__('Show the original audio transcription along with AI response')}}
{{__('Show the AI indicator or agent label before responses')}}
{{__('Choose how to send the transcribed content')}}
{{__('How it works')}}
  • {{__('When an audio message is received, it will be automatically detected')}}
  • {{__('The audio will be sent to OpenAI Whisper API for transcription')}}
  • {{__('The transcribed text will be sent back to the sender automatically')}}
  • {{__('Supports multiple audio formats (OGG, MP3, WAV, M4A)')}}
  • {{__('Maximum audio duration: 25MB file size')}}
@endif