How to disable Automatic Punctuation from Azure Speech recognition

PieroFida 0 Punti di reputazione
2024-01-27T10:53:48.46+00:00

I'm using Azure STT service, and My goal is to disable the Automatic Punctuation from regognized results.

I'm using continuous Recognition from continuous Streaming source with following code:

//Initialize the Stream Handling PullAudioInputStreamCallback derived class            
var audioStream = new VoiceAudioStream();
// Initialize with the format required by the Speech service
var audioFormat = AudioStreamFormat.GetWaveFormatPCM(8000, 16, 1);
// Configure speech SDK to work with the audio stream in right format. 
var audioConfig = AudioConfig.FromStreamInput(audioStream, audioFormat);
// Get credentials and region from client's message.
var speechConfig = SpeechConfig.FromSubscription(key, region);
speechConfig.SpeechRecognitionLanguage = "it-IT";
speechConfig.EnableDictation(); //<- Dictation Mode
// With all the info at hand, finally create the SpeechRecognizer instance.
var speechClient = new SpeechRecognizer(speechConfig, audioConfig);
stopRecognition = new TaskCompletionSource
0 commenti Nessun commento
{count} voti

2 risposte

Ordina per: Più utili
  1. Nikola Kochmalarski (Convergys Corporation) 355 Punti di reputazione Fornitore Microsoft
    2024-01-29T06:19:42.0733333+00:00

    Dear Giorgio, This is the italian section of the Forum do you like to continue with the threads in Italian ? For English support, please use this forums : https://learn.microsoft.com/en-us/answers/questions/ Best regards, Nikola Kochmalarski

    1 persona ha trovato utile questa risposta.
    0 commenti Nessun commento

  2. navba-MSFT 20.215 Punti di reputazione Dipendente Microsoft
    2024-01-30T05:27:00.92+00:00

    @PieroFida Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    .

    Could you please try to upgrade your Microsoft.CognitiveServices.Speech SDK to the most recent version (1.34.1) and check if that helps ?

    https://www.nuget.org/packages/Microsoft.CognitiveServices.Speech/1.34.1

    . ** Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 commenti Nessun commento