Re: text to speech android
At least on Mac you know what voice you get. I wonder how other devs handle this on Android when selecting a voice, because you never know exactly what you choose. Op ma 20 jul. 2020 06:07 schreef Monte Goulding via use-livecode < use-livecode@lists.runrev.com>: > Hi Scott > > The identifiers and names all come from the macOS NSSpeechSynthesizer API > and yes Victoria does appear to be the only voice with an uppercase > character in the identifier `com.apple.speech.synthesis.voice.Victoria`, > > Cheers > > Monte > > > On 20 Jul 2020, at 12:57 pm, scott--- via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Ack! with the exception of “Victoria” which seems to require an > Uppercase first letter. (utter chaos) > > > >> On Jul 19, 2020, at 7:44 PM, scott--- via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> > >> I notice that although speechGetVoices() provides names that begin > with an uppercase letter > >> speechSetVoice() appears to require the name be lowercase for it to > work reliably. > >> > >> LC 9.6.0 Mac Mojave > >> > >> — > >> Scott Morrow > >> > >>> On Jul 19, 2020, at 9:00 AM, matthias rebbe via use-livecode < > use-livecode@lists.runrev.com> wrote: > >>> > >>> Hi Klaus, > >>> > >>> just did a quick successful test on Mac OS 10.14.6 with this script > >>> > >>> on mouseup > >>> > >>> speechInitializeLibrary > >>> > >>> end mouseup > >>> > >>> on speechLibraryInitialized pSuccess > >>> > >>> if pSuccess then > >>> > >>> speechSpeakUtterance "Hallo Klaus" > >>> > >>> get speechfinalizeLibrary() > >>> > >>> end if > >>> > >>> end speechLibraryInitialized > >>> > >>> > >>> - > >>> Matthias Rebbe > >>> Life Is Too Short For Boring Code > >>> > Am 19.07.2020 um 14:28 schrieb Klaus major-k via use-livecode < > use-livecode@lists.runrev.com>: > > Hi Klaus, > > > Am 18.07.2020 um 12:30 schrieb Klaus major-k via use-livecode < > use-livecode@lists.runrev.com>: > > > > Hi all, > > > > in 9.6 we have a new speech library for Mac, iOs and Android. > > In the dictionary "revspeak" is still listed as Mac and Windows only. > > > > Am I correct to presume that the syntax-> revspeak "what to speak" > > is still the same for this new speech library on Android? > > no, you are not correct! > The new syntax is -> speechSpeakUtterance "what to speech speak or > say?" > > > Thanks in advance! > > You're welcome! > > > Best > > > > Klaus > > Did someone could make this work on a Mac so far? > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> ___ > >>> use-livecode mailing list > >>> use-livecode@lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> ___ > >> use-livecode mailing list > >> use-livecode@lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > ___ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: text to speech android
Hi Scott The identifiers and names all come from the macOS NSSpeechSynthesizer API and yes Victoria does appear to be the only voice with an uppercase character in the identifier `com.apple.speech.synthesis.voice.Victoria`, Cheers Monte > On 20 Jul 2020, at 12:57 pm, scott--- via use-livecode > wrote: > > Ack! with the exception of “Victoria” which seems to require an Uppercase > first letter. (utter chaos) > >> On Jul 19, 2020, at 7:44 PM, scott--- via use-livecode >> wrote: >> >> I notice that although speechGetVoices() provides names that begin with an >> uppercase letter >> speechSetVoice() appears to require the name be lowercase for it to work >> reliably. >> >> LC 9.6.0 Mac Mojave >> >> — >> Scott Morrow >> >>> On Jul 19, 2020, at 9:00 AM, matthias rebbe via use-livecode >>> wrote: >>> >>> Hi Klaus, >>> >>> just did a quick successful test on Mac OS 10.14.6 with this script >>> >>> on mouseup >>> >>> speechInitializeLibrary >>> >>> end mouseup >>> >>> on speechLibraryInitialized pSuccess >>> >>> if pSuccess then >>> >>> speechSpeakUtterance "Hallo Klaus" >>> >>> get speechfinalizeLibrary() >>> >>> end if >>> >>> end speechLibraryInitialized >>> >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >>> Am 19.07.2020 um 14:28 schrieb Klaus major-k via use-livecode : Hi Klaus, > Am 18.07.2020 um 12:30 schrieb Klaus major-k via use-livecode > : > > Hi all, > > in 9.6 we have a new speech library for Mac, iOs and Android. > In the dictionary "revspeak" is still listed as Mac and Windows only. > > Am I correct to presume that the syntax-> revspeak "what to speak" > is still the same for this new speech library on Android? no, you are not correct! The new syntax is -> speechSpeakUtterance "what to speech speak or say?" > Thanks in advance! You're welcome! > Best > > Klaus Did someone could make this work on a Mac so far? Best Klaus -- Klaus Major https://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> ___ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: text to speech android
Ack! with the exception of “Victoria” which seems to require an Uppercase first letter. (utter chaos) > On Jul 19, 2020, at 7:44 PM, scott--- via use-livecode > wrote: > > I notice that although speechGetVoices() provides names that begin with an > uppercase letter > speechSetVoice() appears to require the name be lowercase for it to work > reliably. > > LC 9.6.0 Mac Mojave > > — > Scott Morrow > >> On Jul 19, 2020, at 9:00 AM, matthias rebbe via use-livecode >> wrote: >> >> Hi Klaus, >> >> just did a quick successful test on Mac OS 10.14.6 with this script >> >> on mouseup >> >> speechInitializeLibrary >> >> end mouseup >> >> on speechLibraryInitialized pSuccess >> >> if pSuccess then >> >> speechSpeakUtterance "Hallo Klaus" >> >> get speechfinalizeLibrary() >> >> end if >> >> end speechLibraryInitialized >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >>> Am 19.07.2020 um 14:28 schrieb Klaus major-k via use-livecode >>> : >>> >>> Hi Klaus, >>> Am 18.07.2020 um 12:30 schrieb Klaus major-k via use-livecode : Hi all, in 9.6 we have a new speech library for Mac, iOs and Android. In the dictionary "revspeak" is still listed as Mac and Windows only. Am I correct to presume that the syntax-> revspeak "what to speak" is still the same for this new speech library on Android? >>> >>> no, you are not correct! >>> The new syntax is -> speechSpeakUtterance "what to speech speak or say?" >>> Thanks in advance! >>> >>> You're welcome! >>> Best Klaus >>> >>> Did someone could make this work on a Mac so far? >>> >>> >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> https://www.major-k.de >>> kl...@major-k.de >>> >>> >>> ___ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: text to speech android
I notice that although speechGetVoices() provides names that begin with an uppercase letter speechSetVoice() appears to require the name be lowercase for it to work reliably. LC 9.6.0 Mac Mojave — Scott Morrow > On Jul 19, 2020, at 9:00 AM, matthias rebbe via use-livecode > wrote: > > Hi Klaus, > > just did a quick successful test on Mac OS 10.14.6 with this script > > on mouseup > > speechInitializeLibrary > > end mouseup > > on speechLibraryInitialized pSuccess > > if pSuccess then > > speechSpeakUtterance "Hallo Klaus" > > get speechfinalizeLibrary() > > end if > > end speechLibraryInitialized > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 19.07.2020 um 14:28 schrieb Klaus major-k via use-livecode >> : >> >> Hi Klaus, >> >>> Am 18.07.2020 um 12:30 schrieb Klaus major-k via use-livecode >>> : >>> >>> Hi all, >>> >>> in 9.6 we have a new speech library for Mac, iOs and Android. >>> In the dictionary "revspeak" is still listed as Mac and Windows only. >>> >>> Am I correct to presume that the syntax-> revspeak "what to speak" >>> is still the same for this new speech library on Android? >> >> no, you are not correct! >> The new syntax is -> speechSpeakUtterance "what to speech speak or say?" >> >>> Thanks in advance! >> >> You're welcome! >> >>> Best >>> >>> Klaus >> >> Did someone could make this work on a Mac so far? >> >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> kl...@major-k.de >> >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Functions running in IDE, but not running in standalone
Bruce: > However, when I saved the stack as a standalone > the Abstract Report did not run. > Abstract Report which takes a list of US patent numbers > and downloads basic information about each > I tried adding some “answer” alerts to try to find the bottleneck. You are using a logical method so far to narrow down the problem. That's good. But now you just have to keep going, and FOLLOW THROUGH. Don't stop half way. Keep narrowing it down and start profiling your bug. If Livecode encounters a runtime error that is not handled, it will stop executing the script. When it does that, LC sends a message with the error dialog information. In the IDE, you usually (but not always) see a helpful dialog or script debug when hitting an error. But in a standalone, you have several options too - you can choose to include error reporting, you can handle the message yourself, or you can use the Remote Debugger as mentioned, which often (but again, not always) helps. Using answer (or a log file) is another valid option (especially for the "not always" cases where LC debugging falls short!) but use it correctly. Make sure you've really narrowed it down to the offending line; don't make too many assumptions about which is the offending line of code without proving it. The error reporting might give you the line number and error cause. Or you can add another answer to verify your best candidate. Standalone versus IDE problems often boil down to a few areas: file locations, standalone settings and inclusions, folder permissions, app permissions, and so on. Sometimes it's the user's fault, other times an LC bug/feature/glitch. > using Livecode 7.1.4, all of the “answer” alerts came back > and the Abstract Report worked fine! Given that you're downloading things, I would check inclusions and tsNet, plus your file/folder locations. Always try to keep the IDE and standalone code/experience as close to each other as possible, to minimize headaches! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Functions running in IDE, but not running in standalone
Bruce, did you already try the RemoteDebugger to debug your standalone? http://lessons.livecode.com/m/4071/l/698439-using-the-remote-debugger - Matthias Rebbe Life Is Too Short For Boring Code > Am 19.07.2020 um 20:17 schrieb Bruce Pokras via use-livecode > : > > I am having a very frustrating experience. I have an app called Patent > Grabber that is for downloading and searching for patents and published > patent applications. A user reported that one feature of Patent Grabber was > not working. That was the Abstract Report which takes a list of US patent > numbers and downloads basic information about each, and combines all of this > information into a single HTML file. > > When I tried the Abstract Report in the stack from which Patent Grabber was > compiled, the Abstract Report ran fine. However, when I saved the stack as a > standalone the Abstract Report did not run. The standalone was NOT frozen. I > could immediately run other features without problem. > > Since the Abstract Report uses several stack-level functions, I tried adding > some “answer” alerts to try to find the bottleneck. All of the “answer” > alerts came back under the IDE, and the Abstract Report ran as expected. > However, in the standalone, the first couple “answer” alerts came back, but > then NOTHING. It was the “answer” alert that I added at the start of a > function called getBiblio() that did not come back, and the Abstract Report > stopped running. > > Now the getBiblio() function is fairly complex. So I replaced it with a > three-line function whose first line was an “answer” alert to tell me that > the function was running. Under the IDE the “answer” alert came back, but in > the standalone, nothing! > > Oh, and one more thing. This was all under Livecode 9.0.1 and also 9.6.0. I > also tried compiling the standalone under LC 8.1.9 with the same result. > However, when I saved the stack in Livecode 7.0 format, and compiled the > standalone using Livecode 7.1.4, all of the “answer” alerts came back and the > Abstract Report worked fine! > > Any thoughts about this would be greatly appreciated! > > Regards, > > Bruce Pokras > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Functions running in IDE, but not running in standalone
I am having a very frustrating experience. I have an app called Patent Grabber that is for downloading and searching for patents and published patent applications. A user reported that one feature of Patent Grabber was not working. That was the Abstract Report which takes a list of US patent numbers and downloads basic information about each, and combines all of this information into a single HTML file. When I tried the Abstract Report in the stack from which Patent Grabber was compiled, the Abstract Report ran fine. However, when I saved the stack as a standalone the Abstract Report did not run. The standalone was NOT frozen. I could immediately run other features without problem. Since the Abstract Report uses several stack-level functions, I tried adding some “answer” alerts to try to find the bottleneck. All of the “answer” alerts came back under the IDE, and the Abstract Report ran as expected. However, in the standalone, the first couple “answer” alerts came back, but then NOTHING. It was the “answer” alert that I added at the start of a function called getBiblio() that did not come back, and the Abstract Report stopped running. Now the getBiblio() function is fairly complex. So I replaced it with a three-line function whose first line was an “answer” alert to tell me that the function was running. Under the IDE the “answer” alert came back, but in the standalone, nothing! Oh, and one more thing. This was all under Livecode 9.0.1 and also 9.6.0. I also tried compiling the standalone under LC 8.1.9 with the same result. However, when I saved the stack in Livecode 7.0 format, and compiled the standalone using Livecode 7.1.4, all of the “answer” alerts came back and the Abstract Report worked fine! Any thoughts about this would be greatly appreciated! Regards, Bruce Pokras ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Speech on ios and android
Hi Frans, > Am 19.07.2020 um 19:42 schrieb Frans Schoffelen via use-livecode > : > > Thanks for the heads up on this one , totally missed it . Am going to try > this on a language training app i’m working on pronto when back from the > road.Will let you know if i can get it working on mac Klaus. thanks to Matthias last posting I got it working: on mouseup speechInitializeLibrary end mouseup on speechLibraryInitialized pSuccess if pSuccess then speechSpeakUtterance "Hallo Frans" get speechfinalizeLibrary() end if end speechLibraryInitialized -- > Frans Schoffelen > KNLG knowlegistics > Berlin Best Klaus -- Klaus Major https://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Speech on ios and android
Thanks for the heads up on this one , totally missed it . Am going to try this on a language training app i’m working on pronto when back from the road.Will let you know if i can get it working on mac Klaus. Frans Schoffelen KNLG knowlegistics Berlin > On 19. Jul 2020, at 18:01, use-livecode-requ...@lists.runrev.com wrote: > > > Did someone could make this work on a Mac so far? > > > Best > > Klaus ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: text to speech android
Hi Matthias, thank you very much! > Am 19.07.2020 um 18:00 schrieb matthias rebbe via use-livecode > : > > Hi Klaus, > > just did a quick successful test on Mac OS 10.14.6 with this script > > on mouseup > speechInitializeLibrary ## Ah, was not sure if this is a handler or function. ## The dictionary says it it a handler but the example shows it as a function. > end mouseup > ... > - > Matthias Rebbe Best Klaus -- Klaus Major https://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: text to speech android
Hi Klaus, just did a quick successful test on Mac OS 10.14.6 with this script on mouseup speechInitializeLibrary end mouseup on speechLibraryInitialized pSuccess if pSuccess then speechSpeakUtterance "Hallo Klaus" get speechfinalizeLibrary() end if end speechLibraryInitialized - Matthias Rebbe Life Is Too Short For Boring Code > Am 19.07.2020 um 14:28 schrieb Klaus major-k via use-livecode > : > > Hi Klaus, > >> Am 18.07.2020 um 12:30 schrieb Klaus major-k via use-livecode >> : >> >> Hi all, >> >> in 9.6 we have a new speech library for Mac, iOs and Android. >> In the dictionary "revspeak" is still listed as Mac and Windows only. >> >> Am I correct to presume that the syntax-> revspeak "what to speak" >> is still the same for this new speech library on Android? > > no, you are not correct! > The new syntax is -> speechSpeakUtterance "what to speech speak or say?" > >> Thanks in advance! > > You're welcome! > >> Best >> >> Klaus > > Did someone could make this work on a Mac so far? > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: text to speech android
Hi Klaus, > Am 18.07.2020 um 12:30 schrieb Klaus major-k via use-livecode > : > > Hi all, > > in 9.6 we have a new speech library for Mac, iOs and Android. > In the dictionary "revspeak" is still listed as Mac and Windows only. > > Am I correct to presume that the syntax-> revspeak "what to speak" > is still the same for this new speech library on Android? no, you are not correct! The new syntax is -> speechSpeakUtterance "what to speech speak or say?" > Thanks in advance! You're welcome! > Best > > Klaus Did someone could make this work on a Mac so far? Best Klaus -- Klaus Major https://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode