SimpleTTS output from A2DP #469
-
Is it possible to have the text-to-speech output to a BT headset? This is the code I am trying to work (based on one your examples) - I tried to use the a2dp_source as audio output but it did not compile:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The easiest might be to use the A2DPStream class as output instead of the I2SStream . However be warned: If you are new to the ESP32 or Arduino the BluetoothA2DPSource scenario is quite tricky and not the right place to start... Here is the corresponding simple stream example And don't forget that the provided data format from TTS does not match with the A2DP requirement, so it needs to be converted. ps. This is the worst place for this discussion: I think this should actually be rather in AudioTools or SimpleTTS |
Beta Was this translation helpful? Give feedback.
The easiest might be to use the A2DPStream class as output instead of the I2SStream . However be warned: If you are new to the ESP32 or Arduino the BluetoothA2DPSource scenario is quite tricky and not the right place to start...
Here is the corresponding simple stream example
And don't forget that the provided data format from TTS does not match with the A2DP requirement, so it needs to be converted.
ps. This is the worst place for this discussion: I think this should actually be rather in AudioTools or SimpleTTS