Skip to content

Commit a6b0d2c

Browse files
committed
added tts button interaction
1 parent 88fcf42 commit a6b0d2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UnityNativeToolkit/Assets/Scripts/Plugins/NativeToolkit/NativeToolkit.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ void Start()
8989
//SpeechRecognizer
9090
startListening_btn.onClick.AddListener(() => { plugin.StartListening(); });
9191
setContinousListening.onValueChanged.AddListener((isOn) => { plugin.SetContinuousListening(isOn); });
92+
//SpeechToText
93+
speak_btn.onClick.AddListener(() => { plugin.Speak(textToSpeak.text, language.text, country.text); });
9294
}
9395

9496
public void SetResultText(string result)

0 commit comments

Comments
 (0)