Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Internal DAC #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,22 @@ The class controlling methods run on Core 1. Thus, calls to the class variables
https://github.com/earlephilhower/ESP8266Audio

## The files to be played must be:
* aiff formated,
* raw format,
* stored in the SPIFF,
* filename max 16 char
* PCM signed 8 bit,
* 22050 sample / sec,


You can generate the files with ffmpeg. For example:
````
for i in *.wav ; do ffmpeg -i $i -f s8 -acodec pcm_s8 raw/$i.raw ; done
rename .wav.raw .raw *.wav.raw
````

## Use of the SPIFF:
Currently, the "ESP32 data upload tool" has an error. Your sketch will not have access to the files after the upload. To fix this bug, please load the example sketch "SPIFF_Test" on your ESP32 and reset the ESP32 twice! Then your sketch can easily access the files. Please note that the file name must always be complete with the path name and the file extension!
````
Example: "/testfile.aiff"
Example: "/testfile.raw"
````
## Include the following libraries:

Expand Down Expand Up @@ -131,4 +137,4 @@ channel = channel to be stopped. (0 - 2)
````
channel = channel whose state is to be queried. (0 - 2)
Return: Pitch of the queried channel. (0.0 - 1.0) 0 = normal speed, 1 = double speed
````
````
Loading