Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Implementation of TTS Avatar is not working as expected

selvaraj-sembulingam opened this issue · comments

Describe the bug
Python Implementation of TTS Avatar is not working as expected

To Reproduce

Steps to reproduce the behavior:

  1. Followed the exact steps mentioned in the readme of the basic usage of Azure text-to-speech avatar real-time API.

Expected behavior

Avatar loads when Start Session button is clicked.

Version of the Cognitive Services Speech SDK

Which version of the SDK are you using.
azure-cognitiveservices-speech==1.40.0

Platform, Operating System, and Programming Language

  • OS: MacOS
  • Hardware - ARM
  • Programming language: Python
  • Browser - Microsoft Edge

Additional context

  • The avatar is not loading when Start Session button is clicked. WebRTC status is not displayed in Logs.
  • No Error Messages

P.S. Javascript Implementation is working perfectly fine

Thanks for using azure avatar and reporting this issue. @yinhew could you help to check?

Hi, @selvaraj-sembulingam

Did you observe any error message on server side (printed by python code)?

Thanks,
Yinhe

@yinhew

After clicking StartSession below are the logs

❯ python -m flask run -h 0.0.0.0 -p 5000
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://x.x.x.x:5000
Press CTRL+C to quit
127.0.0.1 - - [15/Aug/2024 18:02:34] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 18:02:34] "GET /static/css/styles.css HTTP/1.1" 304 -
127.0.0.1 - - [15/Aug/2024 18:02:34] "GET /static/js/basic.js HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 18:02:46] "GET /api/getIceToken HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 18:02:49] "GET /static/css/styles.css HTTP/1.1" 304 -
Result id for avatar connection: 03cc4fxxxxxxxxxxxxxxxxxxe3d16
127.0.0.1 - - [15/Aug/2024 18:02:52] "POST /api/connectAvatar HTTP/1.1" 200 -

No response for few minutes and then got the below logs

Info: on_underlying_io_bytes_received: Close frame received
Info: on_underlying_io_bytes_received: received close frame, sending a close response frame.
Info: on_underlying_io_close_sent: uws_client=0x11e71b180, io_send_result:0
Info: on_underlying_io_close_sent: closing underlying io.
Info: on_underlying_io_close_complete: uws_state: 6.

Thanks

@selvaraj-sembulingam can you send a mail to avatarvoice@microsoft.com with above Result Id shared?

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.