Skip to content

Commit fe5116a

Browse files
committed
Extended Web Client API
1 parent abe1802 commit fe5116a

File tree

29 files changed

+2083
-413
lines changed

29 files changed

+2083
-413
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Some basic __header-only C++ classes__ that can be used for __Audio Processing__
44

55
- a simple I2S class (to read and write to the internal I2S)
66
- a simple ADC class (to read analog data with the help of I2S)
7-
- Additional Stream implementations: MemoryStream, UrlStream, I2SStream, A2DPStream, PrintStream
7+
- Additional Stream implementations: MemoryStream, URLStream, I2SStream, A2DPStream, PrintStream
88
- Converters
99
- Musical Notes (with frequencies of notes)
1010
- SineWaveGenerator (to generate a sine tone) and [Mozzi](https://sensorium.github.io/Mozzi/) for more complex scenario
@@ -20,7 +20,7 @@ As “Audio Sources” we will have e.g.:
2020

2121
- Analog Microphones – [AnalogAudioStream](https://pschatzmann.github.io/arduino-audio-tools/html/classaudio__tools_1_1_analog_audio_stream.html)
2222
- Digital Microphones – [I2SStream](https://pschatzmann.github.io/arduino-audio-tools/html/classaudio__tools_1_1_i2_s_stream.html)
23-
- Files on the Internet – [UrlStream](https://pschatzmann.github.io/arduino-audio-tools/html/classaudio__tools_1_1_url_stream.html)
23+
- Files on the Internet – [URLStream](https://pschatzmann.github.io/arduino-audio-tools/html/classaudio__tools_1_1_url_stream.html)
2424
- Generated Sound – [GeneratedSoundStream](https://pschatzmann.github.io/arduino-audio-tools/html/classaudio__tools_1_1_generated_sound_stream.html)
2525
- Mobile Phone A2DP Bluetooth – [A2DPStream](https://pschatzmann.github.io/arduino-audio-tools/html/classaudio__tools_1_1_a2_d_p_stream.html)
2626
- Binary Data in Flash Memory – [MemoryStream](https://pschatzmann.github.io/arduino-audio-tools/html/classaudio__tools_1_1_memory_stream.html)

Scenarios.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Unfortunatly Arduino does not provide an I2S functionality which is standrdized acress the different processors. There is only an official documentation for SAMD21 processors. The full functionality of the library is currently only available on the ESP32:
66

77

8-
| Processor | I2SStream | ADCStream | A2DP | UrlStream | Other |
8+
| Processor | I2SStream | ADCStream | A2DP | URLStream | Other |
99
|----------------|-----------|-----------|--------|-----------|--------|
1010
| ESP32 | + | + | + | + | + |
1111
| ESP8266 | * | * | | | + |
@@ -26,7 +26,7 @@ Here are the related Stream classes with their supported operations that can be
2626
| I2SStream | + | + | i2s |
2727
| AnalogAudioStream | + | + | adc, dac |
2828
| MemoryStream | + | + | memory |
29-
| UrlStream | + | | url |
29+
| URLStream | + | | url |
3030
| A2DPStream | + | + | a2dp |
3131
| GeneratedSoundStream | + | | gen |
3232
| AudioOutputWithCallback | + | + | |

examples/streams-flite-webserver_wav/streams-flite-webserver_wav.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#include "flite_arduino.h"
10-
#include "AudioServer.h"
10+
#include "AudioTools.h"
1111

1212
using namespace audio_tools;
1313

examples/streams-generator-webserver_wav/streams-generator-server_wav.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "AudioTools.h"
2-
#include "AudioServer.h"
32

43
using namespace audio_tools;
54

examples/streams-sam-webserver_wav/streams-sam-webserver_wav.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*/
88
#include "sam_arduino.h"
9-
#include "AudioServer.h"
9+
#include "AudioTools.h"
1010

1111
using namespace audio_tools;
1212

examples/streams-tts-webserver_wav/streams-tts-webserver_wav.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*/
88
#include "TTS.h"
9-
#include "AudioServer.h"
9+
#include "AudioTools.h"
1010

1111
using namespace audio_tools;
1212

examples/streams-url_raw-i2s/streams-url_raw-i2s.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
using namespace audio_tools;
1313

14-
UrlStream music; // Music Stream
14+
URLStream music; // Music Stream
1515
I2S<int16_t> i2s; // I2S
1616
I2SStream i2s_stream(i2s);// I2S as Stream
1717
StreamCopy copier(i2s_stream, music, 1024); // copy music to i2s_stream

examples/streams-url_raw-serial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Display RAW Stream
22

33
Sometimes it is handy to check out the data on the screen with the help of the Arduino Serial Monitor and Serial Plotter.
4-
We read the raw binary data from an UrlStream.
4+
We read the raw binary data from an URLStream.
55

66
As output stream we use a CsvStream: this class transforms the data into CSV and prints the result to Serial. Finally we can use the Arduino Serial Plotter to view the result as chart:
77

examples/streams-url_raw-serial/streams-url_raw-serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
using namespace audio_tools;
1313

14-
UrlStream music; // Music Stream
14+
URLStream music; // Music Stream
1515
int channels = 2; // The stream has 2 channels
1616
CsvStream<int16_t> printer(Serial, channels); // ASCII stream
1717
StreamCopy copier(printer, music); // copies music into printer

sandbox/streams-file_wav-I2S_external/streams-file_wav-I2S_external.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using namespace audio_tools;
77
I2S<int16_t> i2s; // I2S output destination
88
I2SStream i2s_stream(i2s); // WAVDecoder neads I2S Output as stream
99
WAVDecoder decoder(i2s_stream); // Decoder writing to I2S Stream
10-
UrlStream music; // Music Stream
10+
URLStream music; // Music Stream
1111
const size_t buffer_size = 512;
1212
uint8_t buffer[buffer_size];
1313
bool is_valid = true;

0 commit comments

Comments
 (0)