wrj0 Posted March 31 Posted March 31 My previous thread was marked as solved with an update to the Audio Player. However, after updating both AudioPlayer and Bluetooth plugins, I still have my custom MP3 files cut short when playing via Bluetooth. Same custom MP3 files play fine via the Speaker output. eisy was power cycled after the updates, and both plugins restarted. Currently running: udx-3.5.6_2 isy-5.8.0_1 pg3x-3.2.21 AudioPlayer 1.3.3 Bluetooth 1.0.4
garybixler Posted March 31 Posted March 31 @wrj0 I am experiencing the same issue with mp3 files playing on BT.
wrj0 Posted March 31 Author Posted March 31 Thanks @garybixler, Hopefully, this won't be a stubborn bug to squash.
Techman Posted March 31 Posted March 31 @wrj0, @garybixler The uploaded MP3 file names need a "_t" appened to the end of the file name, i.e. front door open_t.mp3
wrj0 Posted March 31 Author Posted March 31 (edited) @Techman As noted in my previous post that was closed, my custom files DO have the "_t" at the end of file name, and play fine via the Speaker Output; just Bluetooth cuts them off before playing to the end. Edited March 31 by wrj0 additional info
Techman Posted March 31 Posted March 31 Mine cut off then I added the _t and now they play all the way through. There was an updated Bluetooth Service in PG3, did you update your service?
wrj0 Posted April 1 Author Posted April 1 Update to both Bluetooth and MediaPlayer were performed, as noted in the first post in this thread.
wrj0 Posted April 11 Author Posted April 11 Michel provided me with a solution to being able to play custom Text-to-Speech MP3 files via Bluetooth. Apparently, the TTS site I had been using (ttsmp3.com) does not provide the MP3 files with the proper frame rate. Per the ticket opened on this issue: Quote that's an issue. The reason is that the framerate for BT is different than speaker. So, the code exports the tts mp3 files using the framerate supported by BT. If at all possible, see if you can export your audio files using 48000 as the framerate. I regenerated the desired MP3 files using this site: https://freetts.com/ So far, the custom MP3 files generated by that site are playing fine over both the Speaker and Bluetooth outputs.
Solution wrj0 Posted April 13 Author Solution Posted April 13 With excellent support from ttsMP3.com, some additional information on this issue has provided a simple to implement solution to the Bluetooth audio cutoff problem. MP3 files from freetts.com played fine over Bluetooth, while the files generated by ttsMP3.com were cut short before playing to completion. (As an example, entering "This is a test" would output "This is a" via Bluetooth audio) Support from ttsMP3.com determined that that freetts.com uses a sample rate of 16k, resulting in a lower quality output, than ttsMP3.com that provides 24k sample rate with crisper output sound. Additionally, freetts.com automatically adds a forced pause of 1 second at the end of the file. So, using ttsMP3.com, and adding the tag <break time="1s"/> at the end of your text input to ttsMP3.com to generate an MP3 file, that allows Bluetooth to play the custom MP3 file without cutting off the end.
Recommended Posts