Skip to content

Commit db37f6e

Browse files
committed
Updating with review comments
1 parent 4e6c2f4 commit db37f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public bool IsSpeaking()
403403
/// </summary>
404404
public void StopSpeaking()
405405
{
406-
if (audioSource != null && audioSource.isPlaying)
406+
if (IsSpeaking())
407407
{
408408
audioSource.Stop();
409409
}

0 commit comments

Comments
 (0)