Skip to content

Commit 5388b38

Browse files
committed
Rhasspy example
1 parent 1d136aa commit 5388b38

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ And some more useful examples:
9898
- [streams-url_raw-serial](examples/streams-url_raw-serial) Displaying a music file from the internet on the Serial Plotter
9999
- [streams-url_raw-I2S.ino](examples/streams-url_raw-i2s) Streaming a File from the Internet to on external DAC via I2S
100100
- [streams-mozzi-a2dp](examples/streams-mozzi-a2dp) Use Mozzi to generate Sound to be sent to a Bluetooth Speaker
101+
- [streams-url_wav-i2s](examples/streams-url_wav-i2s) Text to Speach example using Rhasspy
101102

102103
... these are just a few examples, but you can combine any Input Stream with any Output Stream as you like...
103104

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
We generate generate a WAV from some text with the help of [rhasspy](https://rhasspy.readthedocs.io/en/latest/) which is running e.g. on a Rasperry Pi.
3+
and output the result via I2S.
4+
5+
Further details can be fond in https://www.pschatzmann.ch/home/2021/06/23/text-to-speach-in-arduino-conclusions/

sandbox/streams-url_wav-i2s/streams-url_wav-i2s.ino renamed to examples/streams-url_wav-i2s/streams-url_wav-i2s.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ void setup(){
2727

2828
// setup i2s
2929
I2SConfig config = i2s.defaultConfig(TX_MODE);
30-
config.sample_rate = 16000; // Mozzilla 22050
30+
config.sample_rate = 16000;
3131
config.bits_per_sample = 32;
3232
config.channels = 1;
3333
i2s.begin(config);
3434

35-
// Mozilla tts
36-
// url.begin("http://192.168.1.37:5002/api/tts", POST, "text/plain","Hallo, my name is Alice");
3735
// rhasspy
3836
url.begin("http://192.168.1.37:12101/api/text-to-speech?play=false", POST, "text/plain","Hallo, my name is Alice");
3937

0 commit comments

Comments
 (0)