Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

[ToMigrate] Add SpeechGAgent for TTS & STT#92

Open
eanzhao wants to merge 2 commits intodevfrom
feature/speech
Open

[ToMigrate] Add SpeechGAgent for TTS & STT#92
eanzhao wants to merge 2 commits intodevfrom
feature/speech

Conversation

@eanzhao
Copy link
Copy Markdown
Collaborator

@eanzhao eanzhao commented Apr 17, 2025

No description provided.

@eanzhao eanzhao mentioned this pull request Apr 17, 2025
{
await File.WriteAllBytesAsync(tempFilePath, audioData);

using var audioConfig = AudioConfig.FromWavFileInput(tempFilePath);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saving the tempfile on silo's server might be an issue with huge frequency of this call?

{
RaiseEvent(new ConfigSpeechStateLogEvent
{
SubscriptionKey = configuration.SubscriptionKey ?? _speechOptions.SubscriptionKey,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Techically, user can put in any locale?

using var audioConfig = AudioConfig.FromWavFileInput(tempFilePath);
using var recognizer = new SpeechRecognizer(_speechConfig, audioConfig);

var result = await recognizer.RecognizeOnceAsync();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a long io operation, we can use syncworker instead?


namespace Aevatar.GAgents.Speech;

public class SpeechService : ISpeechService
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this only for testing use? If so I think we can remove it

@arg-foo arg-foo changed the title Add SpeechGAgent for TTS & STT [ToMigrate] Add SpeechGAgent for TTS & STT Aug 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants