Skip to main content

General Setup

  1. Go to ChatUICanvas in the DemoChat Scene. Find STTManager Script.
Note: if you can’t find it, add [STTManager] script, assign it to [NPCChatUI]. Unity STT Manager Script Unity Chat UI Canvas STT Manager Unity Voice Input STT Auto Send Recognized Text
  1. Auto Send Recognized Text: Checked by default. The recognized STT text is sent to the chat automatically.
  2. Disable Text Input While Recording: Checked by default. The user cannot type in the chat while recording.

STT Manager Settings

  1. Check Enable Voice Input to enable STT
Unity STT Settings Enable Voice Input
  1. Model Path
Unity Whisper Model Settings Model Path Unity Whisper Model Path Set GGML Is Models in Streaming Assets: checked by default so the packaged game includes the Whisper models.
  1. Select the Language
Translate To English is checked by default. Note: If set to Auto, Whisper may mis-detect the spoken language and produce garbled output. Unity STT Language Select English
  1. Select Voice Input Key
Press and hold the voice input key to record. Release to end recording. Unity STT Select Voice Input Key
  1. Microphone Settings
Unity STT Microphone Settings
  1. Debug
Unity STT Debug Log STT