question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unity - SpeechSynthesisResult AudioDuration

See original GitHub issue

In Unity editor Text to speech AudioDuration is always 0 from SpeechSynthesisResult, but audio exists. To Reproduce Steps to reproduce the behavior:

  1. Download Unity Cognitive Services Speech SDK Text-to-Speech Example
  2. Add this line in HelloWorld.cs on line 49 Debug.Log(result.AudioDuration);
  3. 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:open
  • Created 5 months ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pankoponcommented, Jul 13, 2023

@yulin-li Any update?

0reactions
yulin-licommented, May 29, 2023

This is still under investigating.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found