Getting Started¶
Account Creation¶
Create a Nuance Developer Account here: https://developer.nuance.com/public/index.php?task=register
Check the box “Yes - request access” in the “Want Mix ?” box
Go to your email and activate it
Get your credentials (generate credentials.json file):
pynuance credentials -u USERNAME -p PASSWORD -c credentials.json
Then you can use TTS and STT features
To use NLU feature, you have to wait maximum 24 hours after the account creation
Usage¶
Download your cookies and creadentials¶
Get Cookies¶
To speed up Nuance websites requests, it’s recommended to download your cookies
pynuance cookies -u USERNAME -p PASSWORD -C cookies.json
This will store your cookies in cookies.json file
Get Credentials¶
Then download your credentials needed to use Nuance services
pynuance credentials -C cookies.json -c credentials.json
This will store your credentials in credentials.json file
Use Nuance services¶
Text To Speech¶
pynuance tts -c credentials.json -l en_US -v Allison -d speex -t "Hello World"
NLU¶
- Check if you have access to Nuance Mix
pynuance mix -C cookies.json check
If you got Your Mix account is activated, you can use NLU, you can use it !
- Create a new model
pynuance mix -C cookies.json model -m mymodel create -l en_US
- Upload your data
pynuance mix -C cookies.json model -m mymodel upload -M examples/example1_en-US.trsx
- Train your model
pynuance mix -C cookies.json model -m mymodel train
- Create a build
pynuance mix -C cookies.json model -m mymodel build create -N "My first Version"
- List builds
pynuance mix -C cookies.json model -m mymodel build list
Version | Status | Created at | Notes
1 | COMPLETED | 2017-07-30T19:17:55 | My first Version
- Attach build to the Sandbox app
pynuance mix -C cookies.json model -m mymodel build attach -T mytag
- Run NLU command
pynuance nlu -c credentials.json -l en_US -T mytag text -t "What time is it ?"
Note
For next NLU commands, only step 8 is required