Share via

Azure speech diarization - example from the doc fails

gsouf 0 Reputation points
2024-01-08T05:54:14.57+00:00

Hi,

I tried this example with the javascript client: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-stt-diarization?tabs=linux&pivots=programming-language-javascript

I did install the dependencies and updated the given example in order to provide a 1 minute wav file and the required environment variables.

When I run the script I get the following error:

SessionStarted event
SessionId:[hidden for sharing on the forum]
Canceled event
Websocket message size cannot exceed 65536 bytes websocket error code: 1007


I followed the same process with the python example and got the following error:

SessionStarted event
Canceled event
CLOSING on ConversationTranscriptionCanceledEventArgs(session_id=[hidden], result=ConversationTranscriptionResult(result_id=[hidden], speaker_id=, text=, reason=ResultReason.Canceled))
SessionStopped event
CLOSING on SessionEventArgs(session_id=[hidden])

Thanks

Azure Speech in Foundry Tools

1 answer

Sort by: Most helpful
  1. santoshkc 15,615 Reputation points Microsoft External Staff Moderator
    2024-01-08T09:12:46.9+00:00

    Hi @gsouf,

    Thank you for reaching out to Microsoft Q&A forum!

    I have a less knowledge on Javascript, however the error message for the Python example indicates that the transcription was canceled for some reason. This interruption could stem from several factors, including inadequate audio quality, excessive background noise, or unclear speech from the speaker.

    To diagnose this problem, consider the following steps:

    1. Examine the audio file to ensure its quality is sufficient for accurate transcription. Check for any background noise or other disturbances that might interfere with the transcription process.
    2. Review the service logs or error messages to see if there are any issues with the service itself.
    3. Try using a different audio file or restarting the service to see if the issue persists. If possible, try to test by using Azure provided sample audio file

    If the issue still persists, try using "S0 Standard" tier. Thank you!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.