Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
astro1 Regular Member Joined: 26/06/2016 Location: AustraliaPosts: 53
Posted: 12:51am 11 Mar 2018
Copy link to clipboard
Print this post
Anyone seeing a problem with the audio results, where is plays a lot faster from a tts command after doing a play wav? It seems like play defaults for tts gets changed. I then tried tts with a speed of 225, which plays a little better, but then I loose comms. No response in Tera Term, LED on PIC16F1455 does flash on a key stroke. Need to do a reset to recover. Using latest version off firmware/144.
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10569
Posted: 08:25am 11 Mar 2018
Copy link to clipboard
Print this post
Didn't think anyone was playing with TTS after an initial try so haven't tested it for ages - I'll have a look and see if I can find the problem
UPDATE Found the issue When playing a WAV file the code checks whether the WAV is mono or stereo and sets a parameter accordingly. This tells the interrupt routine that outputs the sound whether to copy one channel to the other or read both from the input. The TTS command is of course mono but wasn't resetting the parameter so if the last WAV played was stereo then the TTS output was double proper speed - AND it read past the end of the buffer by a factor of 2 - causing the crash.
I'll post a fix in the next couple of daysEdited by matherp 2018-03-13
astro1 Regular Member Joined: 26/06/2016 Location: AustraliaPosts: 53
Posted: 04:06am 24 Mar 2018
Copy link to clipboard
Print this post
Working now. Refer to; Topic: MMX Help needed. Posted: 23 March 2018 at 8:12pm 2018-03-23_201142_MMX5.04.15.zip