|
Forum Index : Microcontroller and PC projects : Micromite eXtreme: Text to Speech S.A.M
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10565 |
Probably not remotely useful but fun nevertheless Version 5.3.11 now includes a full implementation of the S.A.M. text to speech code as discussed previously in this thread The syntax of the new command is: TTS "text" [,speed] [,pitch] [,mouth] [,throat] [,interruptroutine] or TTS PHONETIC "phonetic text" [,speed] [,pitch] [,mouth] [,throat] [,interruptroutine] The use of the parameters is best explained by the referenced document above. The optional parameters can be omitted e.g. TTS "Mary had a little lamb" TTS "its fleece was white as snow",,80,,100 TTS PHONETIC "DHAH4 MUW4",,,,,myint defaults are: speed = 72 pitch = 64 mouth = 128 throat = 128 The speech outputs on the MMX audio port in dual mono (both channels have the same output) so if you have a Backpack144 just plug into the jack socket and enjoy a blast from the past. The command is non-blocking and optionally can call a termination interrupt. This will be the last bit of functionality in MMX5.3 as I really must get on with some other projects. I will of course post bug fixes as and when they are necessary. Enjoy! Demo program Option explicit option default NONE dim a$ dim integer i open "crab.txt" for input as #1 do i=0 line input #1, a$ print a$ if a$<>"" then TTS a$,,,,,myint do loop until i=1 endif loop until eof(#1) close #1 end sub myint i=1 end sub 2017-03-04_194149_crab.zip |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
I don't know why you say "not remotely useful". Surely this would be tremendously useful for warnings, annunciations, etc. Everyone will have withdrawal symptoms! Geoff Geoff Graham - http://geoffg.net |
||||
| plasma Guru Joined: 08/04/2012 Location: GermanyPosts: 437 |
haha its great , Frank will go crazy about this. only for curiosity : what do you mean with "some other projects"? |
||||
| Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 772 |
Wow..! Eye balls and now a mouth..! Lou will think this is awesome..! We can now create his ham radio repeater controller using only the MMX..! No click board necessary... Very useful Peter..!! |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 977 |
@Plasma: You are right! That' really great! AWESOME!!! I use in the meantime the micro:bit which has also a S.A.M. implemented. I have unfortunately no Micromite Extreme! Is there a way to implement S.A.M. as a c-function on a MM2????Frank |
||||
| Lou Senior Member Joined: 01/02/2014 Location: United StatesPosts: 229 |
Good one, yes great for a repeater controller if the voice is easily understandable over the radio. I hope someone puts up an MMX demo on YouTube. Thanks Peter. Microcontrollers - the other white meat |
||||
| WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959 |
Unfortunately the SAM speech is not quite up to the quality for radio and/or alarm warnings This is why Peter has mentioned it is more for 'fun' - possibly you can create some useful sound effects rather than speech. This is 'old technology' in terms of speech capability and all Peter has done is implement it (i.e. other peoples coding) on a MicroMite eXtreme. Hopefully it will bring back memories for some of you WW |
||||
| f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155 |
hello to all, do you know if exist an external speech synthesizer (hardware) who speak FRENCH ? thank you for a link Pierre, french hamradio F1FCO 73s de F1FCO |
||||
| WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959 |
Hi Pierre, 'Commercially available' units are out there at a price. Some Googling reveals quite a lot of results but you may need to filter out the companies that are still in business - and probably contact them by email. For example: TextSpeak WW |
||||
| astro1 Regular Member Joined: 26/06/2016 Location: AustraliaPosts: 53 |
Anyone try playing a wav file then a TTS command. play wav "file.wav" TTS "Hello There" TTS speed has increased a bit. Running with the defaults is unchanged, reset button works. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |