neuron-ai
neuron-ai copied to clipboard
Feature/spech to text
//Example class SpeechToTextAgent extends Transcribe { public function transcribe(): TranscribeProviderInterface { return new OpenAITranscribeProvider( config('neuron-ai.providers.openai.api_key'), 'whisper-1', 'es', ); } }
//Agent $fullPath = '.../.../.oga' $agent = SpeechToTextAgent::make(); $string = $agent->transcribeAudio(new AudioContent($fullPath, SourceType::URL));