Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 12:54 20 Aug 2022 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 : Did you know S.A.M.? (text to speech)

     Page 8 of 8    
Author Message
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1028
Posted: 05:34pm 04 Nov 2018
Copy link to clipboard 
Print this post

Hi Frank

Today I can not reproduce the "bug" I saw yesterday.
It was connected with the "stress level" (number) in the phonetic mode.
But now everything seems to work as it should. Maybe a false alarm? Hope so!
Sorry if I worried you unnecessarily.

Michael

@retepsnikrep
The sound is absolute comparable to the Windows version here.Edited by twofingers 2018-11-06
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 8156
Posted: 08:46pm 04 Nov 2018
Copy link to clipboard 
Print this post

Making SAM swear is just as funny now as it was thirty years ago!
Smoke makes things work. When the smoke gets out, it stops!
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 766
Posted: 09:11pm 04 Nov 2018
Copy link to clipboard 
Print this post

  Grogster said   Making SAM swear is just as funny now as it was thirty years ago!

Can it do Polish???? Try "swinie dupa" or "stary byk".

If it can't then it must be exhibiting non-derogatory discrimination!

Pavel Artur Jan Waclaw Lepkowski in NY
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1028
Posted: 09:49pm 04 Nov 2018
Copy link to clipboard 
Print this post

  Paul_L said  
  Grogster said   Making SAM swear is just as funny now as it was thirty years ago!

Can it do Polish???? Try "swinie dupa" or "stary byk".

If it can't then it must be exhibiting non-derogatory discrimination!

Pavel Artur Jan Waclaw Lepkowski in NY

Hi Paul,
I guess SAM can say - almost - anything if you use the right phonemes.
"stary byk"= "old bull" and "swinie dupa" = "pigs butt"?

I never saw any discrimination here. That's why I like this board!

... and the voice of SAM reminds me of the voice of Hawkings (†) and the time of 35 years ago.

Regards
Michael
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 766
Posted: 01:01am 05 Nov 2018
Copy link to clipboard 
Print this post

  twofingers said  
  Paul_L said  
  Grogster said   Making SAM swear is just as funny now as it was thirty years ago!

Can it do Polish???? Try "swinie dupa" or "stary byk".

If it can't then it must be exhibiting non-derogatory discrimination!

Pavel Artur Jan Waclaw Lepkowski in NY

Hi Paul,
I guess SAM can say - almost - anything if you use the right phonemes.
"stary byk"= "old bull" and "swinie dupa" = "pigs butt"?

I never saw any discrimination here. That's why I like this board!

... and the voice of SAM reminds me of the voice of Hawkings (†) and the time of 35 years ago.

Regards
Michael

Geeze Michael, I'm just trying to get a little ruction going here. Most times these Ausies won't get bent out of shape when I try to tell them that they're driving on the wrong side of the road. I figured I'd play the Polack from Brooklyn card to see if they would shoot down that balloon, but they haven't taken the bait ..... yet.

Maybe I'll start picking on Germans next. I know how to do that. Mein Großvater Otto Sebbes zog 1896 von Bremerhaven nach New York.

Paul in NY
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2625
Posted: 02:42am 05 Nov 2018
Copy link to clipboard 
Print this post

GDay All,

Has anyone got a video/audio they can post so we can all hear Sam swear at us?

Kind Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1297
Posted: 03:11am 05 Nov 2018
Copy link to clipboard 
Print this post

Michael / Frank
Oops, must have misplaced that part of my brain - just hit the big 70 a week ago. My bad, just as well I was a metallurgist and not a musician or worse still a linguist.

Greg
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1028
Posted: 03:01pm 05 Nov 2018
Copy link to clipboard 
Print this post

@Paul
No apologies needed.
Every German knows OTTO.
But I think we should not continue to spam this thread ...


@Mick
I never made a Youtube video. Here some MP3s
(taken with my smartphone and a ordinary PC-soundbox without any filters.):

Sam is singing "The Star Spangled Banner" (only a part of demo3)
2018-11-06_004641_demo3_013-part.zip

A phoneme demo:
(/HEHLOW3 EH5VRIXWAHN. IHT SHUH4R IHZ NAY3S - TAX BIY /HIY4R TUH7DEY.)
2018-11-06_003718_Hello_everyon_...__012.zip

$demo2
2018-11-06_004055_Demo211.zip
Hello, my name is SAM.

I can do many things, for example, counting numbers:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
And spelling letters,
A, B, C, D, E, F, G, H, I, J, K, L, M,
N, O, P, Q, R, S, T, U, V, W, X, Y, Z.
Although, due to limited memory, some words may not be pronounced correctly.
Such as: Windows, Nineteen and Recipe.
That should be: Weendows, Nine teen, Re see pee.
But I am still good enough to make myself understood. Or at least I hope so.
Thank you and good bye!


@Greg
I was just surprised. I never wanted you to feel bad.

Best regards
Michael
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 605
Posted: 11:00am 22 Nov 2018
Copy link to clipboard 
Print this post

SAM SPEAKS GERMAN NOW!

I'm afraid this innovation won't be important to most people here.
For all those who always wanted to have a TTS chip with German speech output it could be an enrichment!
Most of it sounds understandable and can be improved by a different spelling.

There are now two new points:
$GER-ASSIGN: Displays the German alphabet for phoneme assignment
$GERMAN : Change to German input


Here are the HEX: 2018-11-22_205653_SAM_TTS_MX150-170_V1.1.zip

And here is the source: 2018-11-22_205846_23_TTS.X-Final_Version_1.1_German.zip

FrankEdited by Frank N. Furter 2018-11-23
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2791
Posted: 11:31am 22 Nov 2018
Copy link to clipboard 
Print this post

Danke schön Frank
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1028
Posted: 05:04pm 22 Nov 2018
Copy link to clipboard 
Print this post

Hi Frank,

das ist wirklich coool und amazing!
Was vielleicht noch fehlt:
- Ein Demo Modus für german
- Die Behandlung von Zahlen (1 - 10) im german mode

For my version I changed the Demo output (c source) slightly.
Maybe you would like to integrate that for the public?
2018-11-23_025510_Demo.zip
Only a optical change, more or less.

I think I will upload a sound sample for the german mode.

Lieber Gruß / Kind regards
Michael
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 605
Posted: 05:34pm 22 Nov 2018
Copy link to clipboard 
Print this post

@WhiteWizzard:

@Michael:

Hi Michael,

you're right!
Unfortunately I programmed it so crappy that I had to change everything to hand over the demo to the translator...
I was thinking about the implementation of the numbers. But how do I differentiate whether the number should be spoken or whether it is responsible for the emphasis?

Did you mean with your "optical change" the "printf("\n\r");" lines? What's better about it (you know, I am new to C)?
Do not hesitate to improve or change the code! Just don't forget to count up the version number and upload the code!

Nice if you like the result so far!!!

FrankEdited by Frank N. Furter 2018-11-24
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 605
Posted: 06:17pm 24 Nov 2018
Copy link to clipboard 
Print this post

Hi Michael,

I've been reconsidering pronouncing the numbers. Do you have any idea how I can query multiple characters in C at the same time? I would have to find out if there is a space or a number in front of or behind the number to be spoken. In BASIC I would query for a range of ASCII characters - the values would then have to be between 48 and 57... How can I formulate this in C?
That would be the first step to speaking numbers between 0 and 9.

(...or can someone else help me formulate something like this in C?)

Frank
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1028
Posted: 11:19am 25 Nov 2018
Copy link to clipboard 
Print this post

Hi Frank,

  Quote  at the same time

??

Suppose your number is in an array (a[]). I would write a function named is_pronounceable_digit (char a[], t_size index).
In this function you can examine the element a[index], if it is a single digit and not a pitch value. Much like you would do in Basic. I would do it in this way:


// untested code snipped - not complete
include <ctype.h> //some macros for isdigit() and isalpha() etc.
include <stddef.h>
#define TRUE 1
#define FALSE 0

// check if an array element is a pronounceable digit
integer is_pronounceable_digit (char a[], size_t index){
if (isdigit((int) a[index])) { // stands for (a[index] >= 48 && a[index] <= 57)
if (index){ // true if not the first character
if (isalpha((int) a[index-1]))
return(FALSE); // pitch, eg "A1" (a[index-1]+a[index])
}else{
return(TRUE);
}
}else{
return(TRUE); // the digit (a[index]) is the first character
}
}
return(FALSE);
}

(for <ctype.h> see also: https://www.tutorialspoint.com/c_standard_library/ctype_h.htm)

To complete this code we need a list of rules. I hope, this helps (I am certainly not an accomplished C programmer. ).
  Quote  (you know, I am new to C)?

BTW. there are free C interpreters to play with ...

Kind regards
Michael
 
     Page 8 of 8    
Print this page


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

© JAQ Software 2022