Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:05 09 Nov 2025 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : Micromite eXtreme: Text to Speech S.A.M

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10565
Posted: 08:56am 04 Mar 2017
Copy link to clipboard 
Print this post

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 Edited by matherp 2017-03-05
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 10:07am 04 Mar 2017
Copy link to clipboard 
Print this post

I don't know why you say "not remotely useful". Surely this would be tremendously useful for warnings, annunciations, etc.

  matherp said  This will be the last bit of functionality in MMX5.3 as I really must get on with some other projects.

Everyone will have withdrawal symptoms!

Geoff
Geoff Graham - http://geoffg.net
 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 09:58pm 04 Mar 2017
Copy link to clipboard 
Print this post

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 States
Posts: 772
Posted: 02:41am 05 Mar 2017
Copy link to clipboard 
Print this post

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: Germany
Posts: 977
Posted: 05:11am 05 Mar 2017
Copy link to clipboard 
Print this post

@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 States
Posts: 229
Posted: 11:20am 05 Mar 2017
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2959
Posted: 12:32am 06 Mar 2017
Copy link to clipboard 
Print this post

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

WWEdited by WhiteWizzard 2017-03-07
 
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 12:37am 06 Mar 2017
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2959
Posted: 12:47am 06 Mar 2017
Copy link to clipboard 
Print this post

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: Australia
Posts: 53
Posted: 01:03am 27 Mar 2017
Copy link to clipboard 
Print this post

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.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025