Skip to content

Commit d854270

Browse files
committed
Many corrections
1 parent 144bfc8 commit d854270

File tree

25 files changed

+719
-49
lines changed

25 files changed

+719
-49
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ If we record the words in mp3 we might even get away with the need for a separat
7575

7676
```
7777
#include "SimpleTTS.h"
78-
#include "AudioCodecs/CodecMP3Helix.h"
78+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
7979
8080
I2SStream i2s; // audio output via I2S
8181
MP3DecoderHelix mp3; // mp3 decoder
@@ -103,7 +103,7 @@ You can also use the text generation classes described above:
103103

104104
```
105105
#include "SimpleTTS.h"
106-
#include "AudioCodecs/CodecMP3Helix.h"
106+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
107107
108108
TimeToText ttt; // Text source
109109
I2SStream i2s; // audio output via I2S
@@ -151,5 +151,5 @@ Further information can be found in the [Wiki](https://github.com/pschatzmann/ar
151151
- [Arduino Audio Tools](https://github.com/pschatzmann/arduino-audio-tools) - mandatory
152152
- [arduino-libhelix](https://github.com/pschatzmann/arduino-libhelix) A __MP3 and AAC Decoder__ from Realnetworks - mandatory if you use the mp3 of the examles
153153
- [SdFat Library](https://github.com/greiman/SdFat) - optional for SD examples (or you can use the SD library instead: see Wiki)
154-
- [Arduino AudioKit](https://github.com/pschatzmann/arduino-audiokit) - optional if you use the AudioKit (alternatively you can just replace the AudioKitStream in the examples with e.g. an I2SStream)
154+
- [Arduino AudioKit](https://github.com/pschatzmann/arduino-audiokit) - optional if you use the AudioKit (alternatively you can just replace the AudioBoardStream in the examples with e.g. an I2SStream)
155155

docs/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ <h1><a class="anchor" id="autotoc_md8"></a>
180180
<li><a href="https://github.com/pschatzmann/arduino-audio-tools">Arduino Audio Tools</a> - mandatory</li>
181181
<li><a href="https://github.com/pschatzmann/arduino-libhelix">arduino-libhelix</a> A <b>MP3 and AAC Decoder</b> from Realnetworks - mandatory if you use the mp3 of the examles</li>
182182
<li><a href="https://github.com/greiman/SdFat">SdFat Library</a> - optional for SD examples (or you can use the SD library instead: see Wiki)</li>
183-
<li><a href="https://github.com/pschatzmann/arduino-audiokit">Arduino AudioKit</a> - optional if you use the AudioKit (alternatively you can just replace the AudioKitStream in the examples with e.g. an I2SStream) </li>
183+
<li><a href="https://github.com/pschatzmann/arduino-audiokit">Arduino AudioKit</a> - optional if you use the AudioKit (alternatively you can just replace the AudioBoardStream in the examples with e.g. an I2SStream) </li>
184184
</ul>
185185
</div></div><!-- PageDoc -->
186186
</div><!-- contents -->

examples/audio-analog/audio-analog.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
#include "SimpleTTS.h"
13-
#include "AudioCodecs/CodecMP3Helix.h"
13+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
1414

1515
AnalogAudioStream out;
1616
VolumeStream volume(out);

examples/audio-i2s-nosilence/Desktop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
#ifdef IS_DESKTOP
88
#include "AudioLibs/PortAudioStream.h"
99
#define I2SStream PortAudioStream
10-
#define AudioKitStream PortAudioStream
10+
#define AudioBoardStream PortAudioStream
1111
#endif

examples/audio-i2s-nosilence/audio-i2s-nosilence.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
*/
1111

1212
#include "SimpleTTS.h"
13-
#include "AudioCodecs/CodecMP3Helix.h"
13+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
1414
#include "Desktop.h"
1515

16-
I2SStream i2s;
16+
I2SStream out;
1717
VolumeStream volume(i2s);
1818
SilenceRemovalConverter<int16_t> rem(8, 2);
1919
ConvertedStream<int16_t,SilenceRemovalConverter<int16_t>> out(volume, rem);
@@ -29,10 +29,10 @@ void setup(){
2929
Serial.begin(115200);
3030
AudioLogger::instance().begin(Serial, AudioLogger::Info);
3131
// setup out
32-
auto cfg = i2s.defaultConfig();
32+
auto cfg = out.defaultConfig();
3333
cfg.sample_rate = 24000;
3434
cfg.channels = 1;
35-
i2s.begin(cfg);
35+
out.begin(cfg);
3636

3737
// define volume
3838
volume.setVolume(0.6);

examples/audio-i2s-queue/audio-i2s-queue.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
#include "SimpleTTS.h"
13-
#include "AudioCodecs/CodecMP3Helix.h"
13+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
1414

1515
I2SStream out;
1616
VolumeStream volume(out);

examples/audio-i2s/audio-i2s.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
#include "SimpleTTS.h"
13-
#include "AudioCodecs/CodecMP3Helix.h"
13+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
1414

1515
I2SStream out;
1616
VolumeStream volume(out);

examples/audio-pwm/audio-pwm.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
#include "SimpleTTS.h"
13-
#include "AudioCodecs/CodecMP3Helix.h"
13+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
1414

1515
PWMAudioStream out;
1616
VolumeStream volume(out);

examples/example-own-sound/example-own-sound.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#define NO_AUDIO_EXAMPLES
22
#include "SimpleTTS.h"
3-
#include "AudioCodecs/CodecMP3Helix.h"
3+
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
44
#include "speechArray.h"
55
//#include "Desktop.h" // some special logic for desktop builds
66

7-
I2SStream i2s;
7+
I2SStream out;
88
VolumeStream volume(i2s);
99
//SilenceRemovalConverter<int16_t> rem(8, 2);
1010
//ConvertedStream<int16_t, SilenceRemovalConverter<int16_t>> out(volume, rem);
@@ -19,11 +19,11 @@ void setup() {
1919
AudioLogger::instance().begin(Serial, AudioLogger::Info);
2020

2121
// setup out
22-
auto cfg = i2s.defaultConfig();
22+
auto cfg = out.defaultConfig();
2323
cfg.i2s_format = I2S_LSB_FORMAT; //or I2S_STD_FORMAT
2424
cfg.sample_rate = 24000;
2525
cfg.channels = 1;
26-
i2s.begin(cfg);
26+
out.begin(cfg);
2727

2828
// setting the volume
2929
volume.setVolume(0.2);

examples/number-to-speech/Desktop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
#ifdef IS_DESKTOP
88
#include "AudioLibs/PortAudioStream.h"
99
#define I2SStream PortAudioStream
10-
#define AudioKitStream PortAudioStream
10+
#define AudioBoardStream PortAudioStream
1111
#endif

0 commit comments

Comments
 (0)