Did you know S.A.M.? (text to speech)
Author | Message | ||||
twofingers Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1102 |
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. |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 8766 |
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 StatesPosts: 769 |
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: GermanyPosts: 1102 |
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 StatesPosts: 769 |
![]() 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, ![]() 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: AustraliaPosts: 2723 |
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: AustraliaPosts: 1321 |
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: GermanyPosts: 1102 |
@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: GermanyPosts: 728 |
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 Frank |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2791 |
Danke schön Frank ![]() For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
twofingers Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1102 |
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: GermanyPosts: 728 |
@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!!! ![]() Frank |
||||
Frank N. Furter Guru ![]() Joined: 28/05/2012 Location: GermanyPosts: 728 |
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: GermanyPosts: 1102 |
Hi Frank, ?? 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. ![]() ![]() BTW. there are free C interpreters to play with ... Kind regards Michael |
||||