Skip to content

Conversation

@mappweb
Copy link
Contributor

@mappweb mappweb commented Oct 31, 2025

//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));

@ilvalerione
Copy link
Contributor

Ho @mappweb any PR should bring a comprehensive description of what you worked on, with code examples, use case, and unit tests.

There is also a template for publishing PRs that can guide you in providing all the necessary information.

@ilvalerione
Copy link
Contributor

Furthermore you target the 2.x branch not main.

@mappweb
Copy link
Contributor Author

mappweb commented Oct 31, 2025

Hi @ilvalerione. Added example.

@ilvalerione
Copy link
Contributor

ilvalerione commented Oct 31, 2025

I don't understand how it integrates with the framework. It's seems a standalone implementation.

By the way, can you use appropriate code formatting? As I said it should also be documented, target the 2.x branch, and tested eventually.

@mappweb
Copy link
Contributor Author

mappweb commented Oct 31, 2025

@ilvalerione An agent that interacts by voice. This would be the first layer of transcription.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants