question

rossfrancishop-0050 avatar image
0 Votes"
rossfrancishop-0050 asked romungi-MSFT commented

Azure Speech API result id is the same for different phrases

Please see the list below which indicates the file, result id and result text. As you can observe the result id does not change when the text has clearly shifted from one phrase to the next. This makes it impossible to display interim results. I've highlighted in bold where the different phrases begin.

  1. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD hello

  2. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD hello hello

  3. App.tsx:76 2B5742B0CD7347988FE6DD980E0D21FD Hello hello.

  4. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD how are

  5. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD how are you

  6. App.tsx:76 2B5742B0CD7347988FE6DD980E0D21FD How are you?

  7. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD testing

  8. App.tsx:76 2B5742B0CD7347988FE6DD980E0D21FD Testing

  9. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD testing

  10. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD testing 1

  11. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD testing 1-2

  12. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD testing 123

  13. App.tsx:76 2B5742B0CD7347988FE6DD980E0D21FD testing 123.

  14. App.tsx:65 2B5742B0CD7347988FE6DD980E0D21FD huh

  15. App.tsx:76 2B5742B0CD7347988FE6DD980E0D21FD Huh?

azure-speech
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@rossfrancishop-0050 Did you get a chance to try the scenario from the sample and check if the result id differs?

0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@rossfrancishop-0050 I have tried a similar scenario with the .net SDK by calling SpeechRecognizer.Recognizing Event and the result id is different. Could you please try this option and check if this works for you?

You can try this sample from this solution which loads many scenarios available of STT and TTS in a simple console app. The region and key of your speech resource needs to be updated in corresponding files.

If you would like to lookup the sample directly this snippet should help. In the screen shot below I have printed the result id to confirm it is different.

107073-image.png



image.png (22.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.