Fred Montier Posted September 4, 2019 Share Posted September 4, 2019 uniGUI DOES SPEECH SYNTHESIS Give a voice to your interface ! The standard Windows phrase is getting better and better. The same goes with the voices of Google services. This example I did demonstrates how to implement voice usage in both your desktop and mobile applications. I highly recommend using Chrome (or Firefox) because it already provides internal voices from his network, such as the translator. Works on all newer browsers except IExplorer, (Retired) Opera (Maybe) etc. There are more voices available using Chrome but you can also download more voices and install on your Windows. Visit https://t.me/uniguiBrazil Portuguese. https://t.me/uniguiexpress English PS: all parameters set to default. See the original HTML example to get range values. But I don't think you will need alter it. So, ignore the volume, rate and pitch controls in the example provided here you still can change in the function I created, thou. See source code and original HTML. Note, its pure uniGUI and JS. You don't need uniHTML/URL Frame or original HTML/JS to run it. PS: Next week I'll post uniGUI DOES SPEECH RECOGNITION, stay tuned ! For compatibility and other issues: See https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis Project available at https://unigui.express 5 1 Quote Link to comment Share on other sites More sharing options...
Harry Rogers Posted September 5, 2019 Share Posted September 5, 2019 That's pretty cool - thanks for sharing Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted September 5, 2019 Author Share Posted September 5, 2019 Soon speech recognition... just finished. Now I can make my journal on-line, encrypt on the fly, dictate my books, without recording sound, download files etc, etc... really amazing. All credits on Speech Recognition goes to Google engine. Voice synthesis is no big deal nowadays. Next week I put on-line. First, there is the Signature for mobile. That's one of those thing I already tried to do with Intraweb and never worked out. 3 Quote Link to comment Share on other sites More sharing options...
albertovesx Posted September 5, 2019 Share Posted September 5, 2019 Very good, thank you Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted October 11, 2019 Share Posted October 11, 2019 "PS: Next week I'll post uniGUI DOES SPEECH RECOGNITION, stay tuned !" Dear Fred, I am very curious about your success about speech recognition with Google! Is there already some knowledge for integration to UniGui, you would like to shar with us? Quote Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted October 13, 2019 Author Share Posted October 13, 2019 Hi my Friend... Soon I will post it. But it only works in Chrome. It is the only browser to support it at this time. But is very impressive what they have done and support to a lot of language. Can even understand my broken english. I'm making a sort of Journal of mine dictating on the fly saving to text. Then I will turn it into a full working example, more easy to anyone. But first I have two more projects queued to the community. Well, It is not big deal using uniGUI... kudos to Google team. c'ya 1 Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 7, 2020 Share Posted February 7, 2020 On 10/14/2019 at 3:01 AM, Fred Montier said: Hi my Friend... Soon I will post it. But it only works in Chrome. It is the only browser to support it at this time. But is very impressive what they have done and support to a lot of language. Can even understand my broken english. I'm making a sort of Journal of mine dictating on the fly saving to text. Then I will turn it into a full working example, more easy to anyone. But first I have two more projects queued to the community. Well, It is not big deal using uniGUI... kudos to Google team. c'ya work hard! Go go go! Quote Link to comment Share on other sites More sharing options...
55143681 Posted February 11, 2020 Share Posted February 11, 2020 On 2/8/2020 at 1:40 AM, 55143681 said: work hard! Go go go! with chrome,there comes out many "Voices",but no sound. with "chinese 360" ,there are only two microsoft "Voices",works well. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 11, 2020 Share Posted February 11, 2020 On 9/4/2019 at 11:31 PM, Fred Montier said: uniGUI DOES SPEECH SYNTHESIS Give a voice to your interface ! The standard Windows phrase is getting better and better. The same goes with the voices of Google services. This example I did demonstrates how to implement voice usage in both your desktop and mobile applications. I highly recommend using Chrome (or Firefox) because it already provides internal voices from his network, such as the translator. Works on all newer browsers except IExplorer, (Retired) Opera (Maybe) etc. There are more voices available using Chrome but you can also download more voices and install on your Windows. Visit https://t.me/uniguiBrazil Portuguese. https://t.me/uniguiexpress English PS: all parameters set to default. See the original HTML example to get range values. But I don't think you will need alter it. So, ignore the volume, rate and pitch controls in the example provided here you still can change in the function I created, thou. See source code and original HTML. Note, its pure uniGUI and JS. You don't need uniHTML/URL Frame or original HTML/JS to run it. PS: Next week I'll post uniGUI DOES SPEECH RECOGNITION, stay tuned ! For compatibility and other issues: See https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis www.unigui.com.br-Speech-synthesis.rar It's a Wonderful, Wonderful life...:) Super !!! You can not imagine the large field applications your sample could open : - Ticket Number on Waiting room - Departure and Arrival train Park - etc... Big Thx Fred. +1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 20, 2020 Share Posted February 20, 2020 On 10/13/2019 at 9:01 PM, Fred Montier said: Hi my Friend... Soon I will post it. But it only works in Chrome. It is the only browser to support it at this time. But is very impressive what they have done and support to a lot of language. Can even understand my broken english. I'm making a sort of Journal of mine dictating on the fly saving to text. Then I will turn it into a full working example, more easy to anyone. But first I have two more projects queued to the community. Well, It is not big deal using uniGUI... kudos to Google team. c'ya Hello FRED, Hoping you feel good. Just would like to know if we have any chance to get speech recognition with Chrome ? Just a very very very simple case demonstration. No need a great application. Big Thx. Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted February 21, 2020 Author Share Posted February 21, 2020 Yes... I´ve done it already. But out of time to publish since I'm very busy translating the first book and finishing the third. But I will post until the end of the month. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 28, 2020 Share Posted February 28, 2020 On 2/21/2020 at 6:41 PM, Fred Montier said: Yes... I´ve done it already. But out of time to publish since I'm very busy translating the first book and finishing the third. But I will post until the end of the month. God bless you Quote Link to comment Share on other sites More sharing options...
55143681 Posted May 4, 2020 Share Posted May 4, 2020 On 2/29/2020 at 12:58 AM, Abaksoft said: God bless you Waiting for the effort,Please. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted May 4, 2020 Share Posted May 4, 2020 12 hours ago, 55143681 said: Waiting for the effort,Please. Fred Montier effort ! Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 3, 2020 Share Posted September 3, 2020 Hello I'm trying your project and I'm stuck on LoadVoices. No voises are loaded. I use Mainform procedures and copy the script.js file to my local \files\script.js directories. What am I missing. I can't load the whole project because I'm getting a old version of Delphi ? Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted September 3, 2020 Author Share Posted September 3, 2020 All examples I made has a "ready-to-go" format. Load the projects and hit run. If is not working, is another issue. Just tried today. Working just fine. Voices are installed and available within your windows OS and browser. In chrome you have additional voices. If you can't see any voice loaded, its another issue. Use Google Chrome. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 4, 2020 Share Posted September 4, 2020 22 hours ago, Fred Montier said: All examples I made has a "ready-to-go" format. Load the projects and hit run. If is not working, is another issue. Just tried today. Working just fine. Voices are installed and available within your windows OS and browser. In chrome you have additional voices. If you can't see any voice loaded, its another issue. Use Google Chrome. You project is with newer Delphi version , and I cant load dpr files. I try to load script.js in my project but no success, can you help me with that ? Now I opened script.js and see that is like unigui projects, and understand where my problem is, uniProject from some reason cant load speach engines. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 4, 2020 Share Posted September 4, 2020 I have uniForm with uniCombobox with name UniComboBoxVoices. to call LoadVoices i use: procedure TUniForm1.UniFormActivate(Sender: TObject); begin LoadVoices (UniComboBoxVoices); end; and function from example: Procedure TUniForm1.LoadVoices (Sender : TObject); Begin // Loading voices - This should only run once. UniComboBoxVoices.Items.clear; uniSession.AddJS('var voices = speechSynthesis.getVoices(); ' + 'voices.forEach(function(voice, i) { '+ // 'alert(voice.name);'+ 'ajaxRequest(' + TuniCombobox (Sender).OwnerForm.Name + '.' + TuniCombobox (Sender).Name + ', ' + Quotedstr('additem')+', ['+quotedstr('item=')+'+voice.name])});'); //Browser Status Compatibility uniSession.AddJS(' if ('+quotedstr('speechSynthesis')+' in window) {'+ 'ajaxRequest(' + TuniCombobox (Sender).OwnerForm.Name + '.lbCompatible, ' + Quotedstr('status')+', ['+quotedstr('msg=')+'+'+quotedstr('Compatible Browser')+'])' + ' } else {'+ 'ajaxRequest(' + TuniCombobox (Sender).OwnerForm.Name + '.lbCompatible, ' + Quotedstr('status')+', ['+quotedstr('msg=')+'+'+quotedstr('Uncompatible Browser')+'])};'); End; this should load in UniComboBoxVoices Items some voices (I see it with html from \ Original files). May be I wrong here : uniSession.AddJS('var voices = speechSynthesis.getVoices(); ' + 'voices.forEach(function(voice, i) { '+ // 'alert(voice.name);'+ 'ajaxRequest(' + TuniCombobox (Sender).OwnerForm.Name + '.' + TuniCombobox (Sender).Name + ', ' + Quotedstr('additem')+', ['+quotedstr('item=')+'+voice.name])});'); Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 4, 2020 Share Posted September 4, 2020 I managed . Problem was : no UniComboBoxVoicesAjaxEvent Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 8, 2020 Share Posted September 8, 2020 Hello can you try your project can it work (load voices) on a mobile device. For example : 1. launch unigui project on mobile (android) google chrome 2. and select from the list of voices. I tried, but there are no voices in the combobox, when i load this google chrome tutorial from a mobile device (and desktops), it fills in its voices: https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/getVoices what i mising on mobile device? Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted September 12, 2020 Author Share Posted September 12, 2020 I don't know. I will give it another try and make another version with more resources and features. But, in all cases, it works better in Chrome. All things related to Audio/Video are better with Chrome. Even MS recognized it ! Who am I to disagree ? I'm in 50th example published here and aiming to 100th before end of the year ! Bye. Quote Link to comment Share on other sites More sharing options...
fefello Posted March 9, 2022 Share Posted March 9, 2022 hi fred, compliment for u all works, is possible download the file www.unigui.com.br-Speech-synthesis.rar ? ty Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted March 9, 2022 Author Share Posted March 9, 2022 All projects with more than 2-3 week old, are removed due to space restrictions. Meanwhile, all downloads are restricted to uniGUI Subscribers and free of charge during time frame . They are now available for purchase at: https://www.unigui.com.br/democetera/ You can buy individual projects From PACK 04. Just reach me at WhatsApp/Telegram 55-11986207676. There is a better and more professional project with more resources and features. https://www.unigui.com.br/uniGUIVoice-eng.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.