From db37f6e011be4ef0f46b4050b7ffd777aaf95808 Mon Sep 17 00:00:00 2001 From: Kurtis <kurtie@microsoft.com> Date: Tue, 22 Nov 2016 16:05:54 -0800 Subject: [PATCH] Updating with review comments --- Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs b/Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs index 2552fc5c8ef..616bfe7a26a 100644 --- a/Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs +++ b/Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs @@ -403,7 +403,7 @@ public bool IsSpeaking() /// </summary> public void StopSpeaking() { - if (audioSource != null && audioSource.isPlaying) + if (IsSpeaking()) { audioSource.Stop(); }