mirror of
https://github.com/Picovoice/porcupine.git
synced 2022-01-28 03:27:53 +03:00
Android Speech-To-Text Demo
Porcupine Wake Word engine with Android STT.
AccessKey
All Android demos require a valid Picovoice AccessKey at initialization. AccessKeys act as your credentials when using Porcupine SDKs.
You can create your AccessKey for free. Make sure to keep your AccessKey secret.
To obtain your AccessKey:
- Login or Signup for a free account on the Picovoice Console.
- Once logged in, go to the
AccessKeytab to create one or use an existingAccessKey.
Copy your AccessKey into the ACCESS_KEY variable in MainActivity.java before building the demo.
Usage
Open demo/android/STT with Android Studio. Launch the demo on your connected Android device or simulator.
- Select the wake word using the dropdown
- Press start
- Say the wake word
- Wait for the wake word to be detected
- Say any phrase
E.g.:
"Alexa"
The app will detect the wake word and start Android STT. The state should be in Running STT and the box will change colors to dark blue. Any phrases picked up will be added to the box.