We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed1501a commit 1dccc65Copy full SHA for 1dccc65
Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs
@@ -382,6 +382,17 @@ public void SpeakText(string text)
382
#endif
383
}
384
385
+ /// <summary>
386
+ /// Stops text-to-speech playback.
387
+ /// </summary>
388
+ public void StopSpeaking()
389
+ {
390
+ if (audioSource.isPlaying)
391
392
+ audioSource.Stop();
393
+ }
394
395
+
396
/// <summary>
397
/// Gets or sets the audio source where speech will be played.
398
/// </summary>
0 commit comments