/numerals-on-off

Sample code for turning numerals on and off during a real-time audio stream.

Primary LanguagePython

numerals-on-off

Sample code for turning numeral formatting on and off during a real-time audio stream.

Usage

python numerals_on_off.py -k $DEEPGRAM_API_KEY

Once the script has started, speak into your microphone and Deepgram will output the transcript into your terminal.

Numeral formatting is disabled at the start of the script.

To enable it, say "numerals on" or "turn on numerals".

To disable it, say "numerals off" or "turn off numerals".

To close the connection and end the script, say "goodbye".

image

Protip: store your Deepgram API key in an environment variable so it doesn't appear in your bash history.