Commit ca0c0c8
[Talking Avatar] support setting photo avatar scene (zoom, position, rotation) from API (#2968)
* [TalkingAvatar] Add sample code for TTS talking avatar real-time API
* sample codes for batch avatar synthesis
* Address repository check failure
* update
* [Avatar] Update real time avatar sample code to support multi-lingual
* [avatar] update real time avatar chat sample to receive GPT response streamingly
* [Live Avatar] update chat sample to make some refinements
* [TTS Avatar] Update real-time sample to support 1. non-continuous recognition mode 2. a button to stop speaking 3. user can type query without speech
* [TTS Avatar] Update real time avatar sample to support auto-reconnect
* Don't reset message history when re-connecting
* [talking avatar] update real time sample to support using cached local video for idle status, to help save customer cost
* Update chat.html and README.md
* Update batch avatar sample to use mp4 as default format, to avoid defaultly showing slow speed with vp9
* A minor refinement
* Some refinement
* Some bug fixing
* Refine the reponse receiving logic for AOAI streaming mode, to make it more robust
* [Talking Avatar] update real-time sample code to log result id (turn id) for ease of debugging
* [Talking Avatar] Update avatar live chat sample, to upgrade AOAI API version from 2023-03-15-preview to 2023-12-01-preview
* [Talking Avatar][Live Chat] Update AOAI API to be long term support version 2023-06-01-preview
* [Talking Avatar] Add real time avatar sample code for server/client hybrid web app, with server code written in python
* Some refinements
* Add README.md
* Fix repo check failure: files that are neither marked as binary nor text, please extend .gitattributes
* [Python][TTS Avatar] Add chat sample
* [Python][TTS Avatar] Add chat sample - continue
* Support multiple clients management
* Update README.md
* [Python][TTS Avatar] Support customized ICE server
* [Talking Avatar][Python] Support stop speaking
* Tolerat speech sdk to unsupport sending message with connection
* [Python][TTS Avatar] Send local SDP as post body instead of header, to avoid header size over limit
* [python][avatar] update requirements.txt to add the missing dependencies
* [python][avatar] update real-time sample to make auto-connection more smoothy
* [Python][Avatar] Fix some small bugs
* [python][avatar] Support AAD authorization on private endpoint
* [Java][Android][Avatar] Add Android sample code for real time avatar
* Code refinement
* More refinement
* More refinement
* Update README.md
* [Java][Android][Avatar] Remove AddStream method, which is not available with Unified Plan SDP semantics, and use AddTrack per suggestion
* [Python][Avatar][Live] Get speaking status from WebRTC event, and remove the checkSpeakingStatus API from backend code
* [Java][Android][Live Avatar] Update the sample to demonstrate switching audio output device to loud speaker
* [Python][Avatar][Live] Switch from REST API to SDK for calling AOAI
* [Python][Avatar][Live] Trigger barging at first recognizing event which is earlier
* [Python][Avatar][Live] Enable continuous conversation by default
* [Python][Avatar][Live] Disable multi-lingual by default for better latency
* [Python][Avatar][Live] Configure shorter segmentation silence timeout for quicker SR
* [Live Avatar][Python, CSharp] Add logging for latency
* [TTS Avatar][Live][Python, CSharp, JS] Fix a bug to correctly clean up audio player
* [TTS Avatar][Live][JavaScript] Output display text with a slower rate, to follow the avatar speaking progress
* Make the display text / speech alignment able for on/off
* [TTS Avatar][Live][CSharp] Output display text with a slower rate, to follow the avatar speaking progress
* Create an auto-deploy file
* Unlink the containerApp yinhew-avatar-app from this repo
* Delete unnecessary file
* [talking avatar][python] Update real time sample to add option to connect with server through WebSocket, and do STT on server side
* [TTS Avatar][Live][js] update sample code for support of setting of background image and remote TURN server URL
* [talking avatar][live][python] make sure host can still start up without AOAI resource
* [Talking Avatar][Live] update sample code to close WS connection in-time, when user closes/refreshes web page, or auto-reconnection is applied
* Some refinement to connection object
* Update csharp sample as well
* [Talking Avatar][Live][Python] Check ICE token fetching success
* [Talking Avatar][Live][Python] Add VAD for interruption with lower delay
* [TTS Avatar][JS] Continue speaking unfinished sentences after reconnection
* [TTS Avatar][Python] Continue speaking unfinished sentences after reconnection
* [TTS Avatar][Python] Trigger reconnection for websockets disconnection
* [TTS Avatar][JS] Trigger reconnection for websockets disconnection
* [TTS Avatar][JS, Python] Refine the auto-reconnect logic to avoid infinite reconnection
* [Talking Avatar][JS, Python, CSharp] When reconnecting, remove data channel onmessage callback to avoid duplicatedly triggering reconnect
* [Talking Avatar][Python] refine the re-connect logic to detect the disconnection earlier
* [Talking Avatar][Live] update sample code to make sure avatar can be loaded on iOS Safari
* Update samples/csharp/web/avatar/wwwroot/js/basic.js
Co-authored-by: Copilot <[email protected]>
* Update samples/csharp/web/avatar/wwwroot/js/chat.js
Co-authored-by: Copilot <[email protected]>
* Update samples/csharp/web/avatar/wwwroot/js/chat.js
Co-authored-by: Copilot <[email protected]>
* Update samples/js/browser/avatar/js/chat.js
Co-authored-by: Copilot <[email protected]>
* Update samples/python/web/avatar/static/js/basic.js
Co-authored-by: Copilot <[email protected]>
* Update samples/python/web/avatar/static/js/chat.js
Co-authored-by: Copilot <[email protected]>
* Revert the unpurposed change
* [Talking Avatar] Collect ICE candidates on page loading, to reduce avatar load latency
* Fix a typo
* [Python][Avatar] Add recommendation of deployment through Azure Container Apps
* Fix lint-python pipeline break due to flake8 package installation failure
* Bump up SDK version to 1.45
* [talking avatar] start playing only after data is loaded, to handle not-playing issue on some browsers
* [Talking Avatar] Use different routes for prebuilt avatar and custom avatar
* suppress lint error E501 line too long
* [Batch Avatar] update batch avatar sample code to support photo avatar
* [Talking Avatar] Update real-time API samples to support photo avatar
* [Talking Avatar] Update real-time API samples to support photo avatar - CSharp
* [Talking Avatar] Update real-time API samples to support photo avatar - node.js
* [Talking Avatar] Update real-time API samples to support photo avatar - readme
* Add voice live avatar sample code of node.js
* Address repository check failures
* Address repository check error
* Address lint python check errors
* Address lint check failure
* Fix a docker build failure
* Add readme for Voice Live Avatar sample of node.js
* A minor update
* [Talking Avatar] support setting photo avatar scene (zoom, position, rotation) from API
---------
Co-authored-by: Yulin Li <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 3a0162c commit ca0c0c8
File tree
9 files changed
+376
-1
lines changed- samples
- csharp/web/avatar
- Controllers
- Views/Home
- wwwroot/js
- js/node/web/avatar
- static/js
- python/web/avatar
- static/js
9 files changed
+376
-1
lines changedLines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
298 | 307 | | |
299 | 308 | | |
300 | 309 | | |
| |||
392 | 401 | | |
393 | 402 | | |
394 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
395 | 451 | | |
396 | 452 | | |
397 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
71 | 93 | | |
72 | 94 | | |
73 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| |||
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
212 | 222 | | |
213 | 223 | | |
214 | 224 | | |
| |||
369 | 379 | | |
370 | 380 | | |
371 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
372 | 435 | | |
373 | 436 | | |
374 | 437 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
68 | 90 | | |
69 | 91 | | |
70 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
| |||
436 | 444 | | |
437 | 445 | | |
438 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
439 | 475 | | |
440 | 476 | | |
441 | 477 | | |
| |||
894 | 930 | | |
895 | 931 | | |
896 | 932 | | |
897 | | - | |
898 | 933 | | |
899 | 934 | | |
900 | 935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| |||
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
212 | 222 | | |
213 | 223 | | |
214 | 224 | | |
| |||
369 | 379 | | |
370 | 380 | | |
371 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
372 | 435 | | |
373 | 436 | | |
374 | 437 | | |
0 commit comments