Pountuation errors in AI service

Eduardo Gomez 3,426 Reputation points
2022-08-31T18:01:45.617+00:00

I manage to complete the transcription perfectly, but I have one small issue, It does not separate after punctuation

For example:

I am transcribing things

https://www.youtube.com/watch?v=nunJDdIlnnk

I believe we have some power over who we love.It isn't just something that happens to a person.And yes, you can stand there and tell me that the poets would disagree, but I am not a poet.I am just a woman and as a woman I have no way to make money.Not enough to earn a living and support my family.Even if I had my own money, which I don't, it would belong to my husband the minute we were married.If we have children, they belong to him, not me. They are his property.So don't sit there and tell me that marriage isn't an economic proposition, because it is. It may not be for you.But it most certainly is for me.That will be Fred now.How do I look?Do I look alright?

As you can see, it doesn't separate after a . or ?

Thi is my VM

   var config = SpeechConfig.FromSubscription(KEY, Region);  
        MessageBox.Show("Ready to use speech service in " + config.Region);  
  
        // Configure voice  
        config.SpeechSynthesisVoiceName = "en-US-AriaNeural";  
  
        // Configure speech recognition  
  
        var taskCompleteionSource = new TaskCompletionSource<int>();  
  
        using var audioConfig = AudioConfig.FromWavFileInput(FilePath);  
        using var speechRecognizer = new SpeechRecognizer(config, audioConfig);  
        speechRecognizer.Recognizing += SpeechRecognizer_Recognizing;  
        speechRecognizer.Recognized += SpeechRecognizer_Recognized;  
        speechRecognizer.SessionStarted += SpeechRecognizer_SessionStarted;  
        speechRecognizer.SessionStopped += SpeechRecognizer_SessionStopped;  
  
        speechRecognizer.Recognizing -= SpeechRecognizer_Recognizing;  
        speechRecognizer.Recognized -= SpeechRecognizer_Recognized;  
        speechRecognizer.SessionStarted -= SpeechRecognizer_SessionStarted;  
        speechRecognizer.SessionStopped -= SpeechRecognizer_SessionStopped;  
  
        await speechRecognizer.StartContinuousRecognitionAsync().ConfigureAwait(false);  
  
        // Waits for completion.    
        // Use Task.WaitAny to keep the task rooted.    
        Task.WaitAny(new[] { taskCompleteionSource.Task });  
  
        await speechRecognizer.StopContinuousRecognitionAsync().ConfigureAwait(false);  
  
    }  
  
    private void SpeechRecognizer_SessionStopped(object? sender, SessionEventArgs e)  
    {  
  
        Debug.WriteLine("Stopped");  
  
        var str = string.Empty;  
  
        foreach (var item in Words)  
        {  
            str += item;  
        }  
  
        Debug.WriteLine(str);  
    }  
  
    private void SpeechRecognizer_SessionStarted(object? sender, SessionEventArgs e)  
    {  
        Debug.WriteLine("Started");  
    }  
  
    private void SpeechRecognizer_Recognized(object? sender, SpeechRecognitionEventArgs e)  
    {  
        if (e.Result.Reason == ResultReason.RecognizedSpeech)  
        {  
            foreach (var item in e.Result.Text)  
            {  
                Words.Add(item);  
            }  
        }  
    }  
  
    private void SpeechRecognizer_Recognizing(object? sender, SpeechRecognitionEventArgs e)  
    {}  

 
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,645 questions
{count} votes