using 24bit-96khz output DAC #624
-
for simplicity, for starting point, i am using ESP32-A1S board. it has Es8388 DAC.
and the
and for the
with this code, i only get nois. hisssssssssssssssssssssssssss. no audio at all when playing. if i stop playing, the hissss goes away.
and if i change to
a little help would be wonderful. thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 22 comments 26 replies
-
then i did this:
it plays audio in slow motion!
if i do this |
Beta Was this translation helpful? Give feedback.
-
Why don't you just use a FormatConverterStream and let it do it's work ? By the way your assumption that this would increase the quality is just plain wrong! |
Beta Was this translation helpful? Give feedback.
-
The audio is transmitted with 16 bits at 44100 samples per second so that's the quality you get. The AudioBoardStream configures both: I2S and the es8388 Codec. |
Beta Was this translation helpful? Give feedback.
-
It would be interresting if you would be able to measure this. My point was that you will not get a higher frequency response by upsampling. I am also using a imple linear interpolation to determine the "missing" samples which might have it's drawbacks. |
Beta Was this translation helpful? Give feedback.
-
There are some comments about this in the IDF documentation. |
Beta Was this translation helpful? Give feedback.
-
so, i measured the frequency by oscilloscope. it is around 11.2 mhz. it means it should be 11.2896 MHz. base on the chart, these are the only sample rates it could work with: |
Beta Was this translation helpful? Give feedback.
-
i have not tested it, but for reminder i put it here. i may change it.
this should work if Register 8 – Master Mode Control , works with the setting it says! oh, i changed that too. |
Beta Was this translation helpful? Give feedback.
-
funny, i was reading the new driver for es8388 from espressif / esp-adf .they address the chip with |
Beta Was this translation helpful? Give feedback.
-
we have a big problem. at least i have!
but if our codec has ADC and DAC, they will config the same. but they can (and should) have different setting. to me, it is very important. can you add (or fix) this issue? for compatibility, dont change the defualt, only add 2 extra line for ADC setting. like:
this way no one has to change anything, but if they want, they can change it.
and i didn't remove or modify the names of the main code: but what way do you want it? should i change the
or do nothing to
to do those things separately? what is your opinion? |
Beta Was this translation helpful? Give feedback.
-
oh, but they do. |
Beta Was this translation helpful? Give feedback.
-
so, i finished it for test. not everything is good. volume should be fixed. this is a simple code i tested it:
it should work with other codes too. i have not tested the mic or line in yet. |
Beta Was this translation helpful? Give feedback.
-
es8388.zip |
Beta Was this translation helpful? Give feedback.
-
in
since you didn't define |
Beta Was this translation helpful? Give feedback.
-
and we have different sample rates for ADC and DAC , if you want to use them:
we only have these 5 sample rate for the default frequency of I2S. default is 44100 Hz for both.
|
Beta Was this translation helpful? Give feedback.
-
es8388.zip
and fixed few registers options. do you want me to continue here? |
Beta Was this translation helpful? Give feedback.
-
we have a problem! for input selecting, there are 2 main inputs: |
Beta Was this translation helpful? Give feedback.
-
can i change
and i got a hundred errors from other libs, like arduino-audio-tools-main. |
Beta Was this translation helpful? Give feedback.
-
No the generic API should not change and should be consistent across all drivers! In addition I don't see any added value:
|
Beta Was this translation helpful? Give feedback.
-
anyway, this is my latest driver. but i did see some odd behaviors in it. after programming the esp32, i found out i have to power off the board and Bluetooth of my phone, then power on the board then my phone. it wont work if i don't do them. the resseting the device doesnt work after program.
es8388.zip |
Beta Was this translation helpful? Give feedback.
-
fixed error for
|
Beta Was this translation helpful? Give feedback.
-
I don't qute get why you have a separate es8388_extra__voice_volume() |
Beta Was this translation helpful? Give feedback.
-
es8388.zip |
Beta Was this translation helpful? Give feedback.
Why don't you just use a FormatConverterStream and let it do it's work ?
By the way your assumption that this would increase the quality is just plain wrong!