Unity - SpeechSynthesisResult AudioDuration
See original GitHub issueIn Unity editor Text to speech AudioDuration is always 0 from SpeechSynthesisResult, but audio exists. To Reproduce Steps to reproduce the behavior:
- Download Unity Cognitive Services Speech SDK Text-to-Speech Example
- Add this line in
HelloWorld.cs
on line 49Debug.Log(result.AudioDuration);
- Result will be printed inside Unity Console
Expected behavior Expected the duration of generated audio.
Version of the Cognitive Services Speech SDK 1.27.0.
Platform, Operating System, and Programming Language
- Windows 10 Pro
- Hardware - x64
- Programming language: C#
Issue Analytics
- State:
- Created 5 months ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
SpeechSynthesisResult.AudioDuration Property
Specifies the time duration of synthesized audio. Only valid for completed synthesis. Added in version 1.21.0.
Read more >Azure API randomly stopped working in Editor. Works in build
Then this morning unity crashes (it crashes a lot), I re-open the editor and all three services ... AudioDuration + speechSynthesisResult.
Read more >Unity C# 之Azure 微软SSML语音合成TTS流式获取音频数据 ...
<math xmlns="http://www.w3.org/1998/Math/MathML"></math>. <mstts:audioduration value="string"/>.
Read more >DictationRecognizer.AutoSilenceTimeoutSeconds
The time length in seconds before dictation recognizer session ends due to lack of audio input. The default value is 20 seconds. Did...
Read more >How to use Azure's Text-To-Speech to create an audio file ...
I am currently using Microsoft Azure's Text to Speech Unity SDK in my small app. With the C# Unity script I'm currently using, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yulin-li Any update?
This is still under investigating.