79428030

Date: 2025-02-10 18:54:56
Score: 0.5
Natty:
Report link

And finally, I found the bug. I replaced culture with tr_TR and done.

public async Task<string> MediaToolKitSpeechToTextAsync(){

var options = new SpeechToTextOptions
{
    Culture = CultureInfo.GetCultureInfo("tr_TR") 
};

await SpeechToText.Default.StartListenAsync(options, CancellationToken.None);

SpeechToText.Default.RecognitionResultCompleted += (s, args) =>
{
    if (args.RecognitionResult != null && !string.IsNullOrEmpty(args.RecognitionResult.Text))
    {
        transcript = args.RecognitionResult.Text;
    }
    else
    {
        MainThread.BeginInvokeOnMainThread(async () =>
        {
            await DisplayAlert("Hata", "Ses anlaşılamadı.", "Tamam");
        });
    }
};

return transcript;

}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hakan DOĞAN