Skip to content

Commit 189e7e1

Browse files
committed
rename FliteOutput to FliteOutputStream
1 parent d94e372 commit 189e7e1

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ git clone pschatzmann/arduino-flite.git
2121
Here is the generated [Class documentation](https://pschatzmann.github.io/flite/doc/html/class_flite.html) for the Arduino API.
2222
Further information on Flite can be found [in the FLITE.md](FLITE.md)
2323

24+
## Output Format
25+
26+
The generated output format is usually as follows
27+
28+
| Parameter | Value |
29+
|-------------------|-------|
30+
| bits_per_sample | 16 |
31+
| channels | 1 |
32+
| sample_rate | 8000 |
33+
2434

2535
## Memory Requirements
2636

src/flite_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Flite {
4747
if (as_text){
4848
setOutput(new FlitePrintStream(stream));
4949
} else {
50-
setOutput(new FliteOutput(stream));
50+
setOutput(new FliteOutputStream(stream));
5151
}
5252
flite_init();
5353
}

src/flite_out_arduino.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ class FliteOutputI2S : public FliteOutputBase {
244244
* @brief Output using Arduino Print class
245245
*
246246
*/
247-
class FliteOutput : public FliteOutputBase {
247+
class FliteOutputStream : public FliteOutputBase {
248248
public:
249-
FliteOutput(Print &out){
249+
FliteOutputStream(Print &out){
250250
this->out_ptr = &out;
251251
}
252252

@@ -276,9 +276,9 @@ class FliteOutput : public FliteOutputBase {
276276
* @brief Write readable string to Arduino Print class
277277
*
278278
*/
279-
class FlitePrintStream : public FliteOutput {
279+
class FlitePrintStream : public FliteOutputStream {
280280
public:
281-
FlitePrintStream( Print &out) : FliteOutput(out) {
281+
FlitePrintStream( Print &out) : FliteOutputStream(out) {
282282
}
283283

284284
virtual int write(void *buffer,int sample_count) {

0 commit comments

Comments
 (0)