Commit Graph
38 Commits
Author SHA1 Message Date
Ryan Jacobs 16bd2a7b06 enable syntax highlighting on README.md (#214) 2019-11-18 08:49:58 -07:00
Simon L e6a4e6c886 Document the internal DAC on ESP32 more explicitly (#184)
* Document INTERNAL_DAC explicitly and its usage

* Add INTERNAL_DAC usage comment in example
2019-05-12 08:31:08 -07:00
Earle F. Philhower, III 0987b12e58 Fix 8->16 bit output conversion overflow error
The I2S outputs were converting samples in the buffer passed in
from u8->s16 on every call.  When the I2S was full, however, the
sample would not get pushed and the output function would be
called at a later time with the same buffer...which was already
at 16 bits.  It'd be converted again and turned into a high
frequency noise on the output.

Now only modify a copy of the input sample in I2S and I2SNoDAC.
Fixes the conversion problem competely.

Fixes #2
2018-05-23 22:40:29 -07:00
Earle F. Philhower, III b9be5c69dd Add warning about amplified speakers on 1T 2018-05-23 08:56:08 -07:00
Earle F. Philhower, III 8684cbc42f Add linear clock note 2018-05-23 08:20:28 -07:00
Earle F. Philhower, III 8489f6990d Add I2S debug/wiring notes 2018-05-15 07:22:49 -07:00
Trailhead 7f5ad4f61c fixing typo in README.md (#96) 2018-05-15 06:41:10 -07:00
Earle F. Philhower, III a4610346a6 New use case byu CosmicMac 2018-04-02 14:20:57 -07:00
Earle F. Philhower, III bc87dca1be Add JohannesMTC link 2018-04-01 19:09:38 -07:00
Earle F. Philhower, III 582e6e70ac Add RTTTL example and use a non-square waveform
Seems like I2S DACs don't like to be presented with perfect bang-bang
square waveforms, so build a very simple model and use that to avoid
abrupt changes in values.  Sounds about as good as you're going to get
with this.

Also add a simple example showing how to play a RTTTL string.
2018-03-26 08:00:56 -07:00
Earle F. Philhower, III 9598c4862e Add ESP32-fs-plugin link to README, thx @rfestag 2018-03-09 10:11:05 -08:00
Earle F. Philhower, III 9e708af1f2 README now contains latest SPIFFS on ESP32 2018-03-05 07:26:12 -08:00
Earle F. Philhower, III 9991fb5300 Add links to cool uses 2018-02-28 20:35:59 -08:00
Earle F. Philhower, III 96fc37dce5 Refactor I2S to be cleaner, more extensible
With the multiple I2S modes on the ESP32, it makes sense to use a
cleaner class hierarchy for the I2S tools.  Make I2SNoDAC into a
subclass of I2S (renamed from I2SDAC) and remove about 80% of the
code which was identical exept for the per-sample bitstream synthesis.
2018-01-25 19:15:02 -08:00
Earle F. Philhower, III e5d23a4692 Enable Travis-CI builds
Enable automatic building of all examples and SAM(speech) on a
commit by using Travis-CI.  Build against ESP8266 and ESP32.

Minor tweaks to examples and codebase to allow successful compilation
on ESP32 compiler.
2018-01-19 15:57:30 -08:00
Earle F. Philhower, III 244007b0c5 Enable AAC-SBR on ESP-32, there's enough RAM
AAC-SBR allows for lower bitrates to have higher quality audio output,
and is used by many web radio stations.  It was disables on the ESP8266
due to RAM limitations (about 50KB too little), but the ESP32 has no
such problem.  Enable it automatically during compile.
2018-01-18 10:53:03 -08:00
Earle F. Philhower, III bd40d8af6f Include info on using BCLK/LRCLK as inputs w/SWDAC
The bit clock and l/r clock can be used as inputs, per issue #32 testing.
Explain how to do this in the readme.
2018-01-18 10:15:02 -08:00
Earle F. Philhower, III ddf4db187c Update to include 2.4 release + ESP32 support 2018-01-18 10:09:25 -08:00
tueddy 03aa2467f0 Porting for ESP-32 (#33)
* support ESP-32
* make compile with ESP-32/arduino platform
* fixed: use libmad on ESP8266 as original
2018-01-18 08:55:03 -08:00
Earle F. Philhower, III 2e348d2b1f Redirect to original SPIRAM library
Change from my own patched copy of SPIRAM libs to the original source
since the required patches were just commited.
2018-01-04 10:01:50 -08:00
Earle F. Philhower, III 8c7b30add3 Update to include the 2.4.0-rc2 JSON link 2017-12-16 16:17:47 -08:00
Earle F. Philhower, III 5b45a79cf7 Fix ICY decoder overflow causing streams to die 2017-12-16 16:16:01 -08:00
Earle F. Philhower, III 43273e3394 Add instructions for use with GIT 2.4+ only 2017-12-15 14:44:56 -08:00
Earle F. Philhower, III 1ab9348a4c Update the instructions for installation
The library will not compile w/o the SPI driver, add it to the README.
Point to my fork until @armSeb's pull request in the original is merged.
2017-12-06 14:20:39 -08:00
armSeb 97c05c9f34 SPIRAM buffer support from @armSeb
* Initial SPIRAM buffering support

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* SPI RAM Buffering fill & read.

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* First "working" version...

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Improved version of SPIRAM buffering

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Fixed spiram.h path

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Buffer fill optimization

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Modified read block min to avoid too little buffering attempts

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Temps buffer size decrease from 2048 to 1600 Bytes

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Decrease the temp buffer to 256Bytes

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Local buffer variable

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Added loop function to SPIRAMBuffer that refill it automatically

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Compile issue

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Add possibility to define Chip Select pin from Sketch

Signed-off-by: Sebastien Decourriere <sebtx452@gmail.com>

* Externalize libspiram

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Copyright fix

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Deleted embedded libspiram

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Added comments, example and keyword

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* README modification

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Correction

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* Schema example

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>

* README correction

Signed-off-by: sebastien <armseb@MacBook-de-sebastien.local>
2017-12-06 13:30:51 -08:00
Earle F. Philhower, III 75268b5e3b Add inline ID3 decoder w/callback interface
ID3 tags can now automatically give your app a callback with different tag
types without any additional work on your application.  See the PlayMP3 example
for a very simple example of AudioFileSourceID3's use.
2017-12-02 13:01:46 -08:00
Earle F. Philhower, III df4588197f Add note about SBR not being supported due to RAM 2017-11-23 20:01:38 -08:00
Earle F. Philhower, III 8b080899af Fix buffer example snippet to actually work
@gerardwr found that the cut-n-pasted original example code could never
actually work, in issue 9.  Rewrite so instead of a full working sample
(which would be 40+ lines due to WiFi setup) only the relevant changes are
shown.
2017-11-20 07:11:17 -08:00
Earle F. Philhower, III fdffe0226e Fix typos and add links to other projects 2017-11-18 19:04:33 -08:00
Earle F. Philhower, III 551a8ac0bb Add AAC playback using Helix from RealNetworks
AACs can now be played back on the ESP8266 thanks to the RealNetworks
Helix project's AAC decoder.  SBR is *not* supported, as there is not
enough RAM in the system to support it.
2017-11-18 08:42:09 -08:00
Earle F. Philhower, III 047fef2678 Add SPIFFS file output option
AudioOutputSPIFFSWAV writes a valid WAV file to the SPIFFS filesystem.
Be sure to do a SPIFFS.start() or .format before calling any output.
Set the filename using the additional ->SetFilename() call.
2017-10-05 19:04:40 -07:00
Earle F. Philhower, III 7b89388008 Minor note about WEMOS SD card shield 2017-09-29 06:58:03 -07:00
Earle F. Philhower, III 685dcbf18d Add FLAC support to the framework via libflac-1.3.2
Ported libFLAC v1.3.2 to the ESP8266.  Moved CRC constants to PROGMEM
and the error strings.  Still to be done would be decreasing the output
buffer to an int16_t and moving a larce number of "const int" to enums
since "const int" eats 4 bytes per variable.
2017-08-17 18:25:04 -07:00
Earle F. Philhower, III 64ceb33a31 Add a HTTP streamer music "file" reader class
Implements a simple and stupid HTTP stream reader to allow for ShoutCast
and other MP3 radio streaming to happen.  Presently seems to stutter on
128K, 44.1KHz streams, but may be better on lower bitrates.
2017-08-14 19:47:22 -07:00
Earle F. Philhower, III 4985aab58c Fix the schematic to remove overlaps 2017-08-12 10:39:29 -07:00
Earle F. Philhower, III cb6f530577 Update README with class information 2017-08-12 10:06:04 -07:00
Earle F. Philhower, III 3844fcb547 Add more info on speaker driver power 2017-08-12 09:35:32 -07:00
Earle F. Philhower, III 2cf8fcef2a Bring in files from original projects
The library was originally part of several separate projects.  Make the
needed structure and bring those files in, including some READMEs.
2017-08-12 09:01:42 -07:00