iOS TextToSpeech extension for free

Find out what's going on with LiveCode (the company), product releases, announcements, and events.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

iOS TextToSpeech extension for free

Post by jmburnod » Thu Apr 09, 2020 11:53 am

Hi All,
I use this extension for four months with successs (LC 9.5.0, iOS 13.1.2)
I'm happy to announce you may get it fro free.

Two "computer science" students from the Federal Polytechnic School of Lausanne "have agreed to put their skills to the service of EcrireEnPictos with this extension © 2020 -
LiveCode-Extension-iOS-SpeechSynthetizer.
Simon Wicky & Samuel Chassot, from Bulle en Gruyère (Friborg - Switzerland), wanted to offer this extension under the MIT License.
Alternatic.ch and Erucipe would like to thank the fine Simon & Sam team (SwissEduHack) for their very professional work which has given complete satisfaction.

This extension is free, you may get it here.
https://github.com/SwissEduHack/LiveCod ... ynthetizer

Copyright (c) 2020 Simon Wicky & Samuel Chassot
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

According to fr.wikepdia.org, the license gives anyone receiving the software (and its files) the unlimited right to use it, copy it, modify it, merge it, publish it, distribute it, sell it and "under - license holder "(incorporate it into another license). The only obligation is to incorporate the license and copyright notice in all copies.

Alternatic.ch and Erucipe would like to thank the fine Simon & Sam team (SwissEduHack) for their very professional work which has given complete satisfaction.
We wish them a great student and professional journey to come!
For Alternatic: Elvio FISLER, president
For Erucipe: Jean-Marc BURNOD, software designer with LiveCode

Best regards
Jean-Marc
https://alternatic.ch

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: iOS TextToSpeech extension for free

Post by bogs » Thu Apr 09, 2020 12:16 pm

Now that is WAY cool JM!
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: iOS TextToSpeech extension for free

Post by jmburnod » Thu Apr 09, 2020 3:30 pm

Hi Bogs,
Thanks for your message.
We have some discuss about licence.
Finaly we decided it would be whole free, for commercial products too.
Make knowledge more accessible is the first goal of alternatic.ch and this extension is one contribution.
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: iOS TextToSpeech extension for free

Post by jmburnod » Fri Apr 24, 2020 4:35 pm

Hi All,
Is there anyone who may test iOS-SpeechSynthetizer extension with LC 9.06 ?
Thanks in advance
Best regards
Jean-Marc
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: iOS TextToSpeech extension for free

Post by jmburnod » Tue Jun 23, 2020 6:43 pm

Hi All,
iOS-SpeechSynthetizer extension works fine with LC 9.06 :D
Best regards
Jean-Marc
https://alternatic.ch

jiml
Posts: 336
Joined: Sat Dec 09, 2006 1:27 am
Location: Los Angeles

Re: iOS TextToSpeech extension for free

Post by jiml » Tue Jun 23, 2020 6:52 pm

Wonderful!
Thank You to all those who created this!

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: iOS TextToSpeech extension for free

Post by jmburnod » Sat Nov 28, 2020 11:48 am

Hi All,
I notice that some controls of my app doesn't work if i didn't call before SpeechSynthetizer extension which is loaded at startup.
One call to this extension at preopenstack seems the trick.
Best regards
Jean-Marc
https://alternatic.ch

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iOS TextToSpeech extension for free

Post by trevix » Wed Feb 03, 2021 1:47 pm

Hi and thanks again for what you did!!
Is there any chance that the TTS could be saved as audio to a variable (best) or to a file?
TTS is so good on iOS and Android, that the extension should be able (like in my wishes) to transmit it to a different device (whose TTS could not be that good).
Thanks
Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: iOS TextToSpeech extension for free

Post by jmburnod » Wed Feb 03, 2021 6:54 pm

Hi Trevix,
thanks again for what you did!!
Unfortunatly, i did nothing. Just convainc some students to do it. :D
Did you ask this on github ?
https://github.com/SwissEduHack/LiveCod ... ynthetizer
Samuel (one of authors) use it to follow feed-backs.
Kind regards
Jean-Marc
https://alternatic.ch

PaulDaMacMan
Posts: 616
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: iOS TextToSpeech extension for free

Post by PaulDaMacMan » Wed Feb 10, 2021 3:46 am

trevix wrote:
Wed Feb 03, 2021 1:47 pm
Hi and thanks again for what you did!!
Is there any chance that the TTS could be saved as audio to a variable (best) or to a file?
TTS is so good on iOS and Android, that the extension should be able (like in my wishes) to transmit it to a different device (whose TTS could not be that good).
Thanks
Trevix
I'm not sure about Android, but I know that the newer AV Speech API available on newer macOS versions (10.14+) and on iOS does not have any readily available calls for rendering speech to a file (it can still be done but it's a bit more complicated), however the older NSSpeech API on macOS does have a call for saving speech to an audio file. I did include this in my LCB lib that wrap NSSpeech, here: https://github.com/PaulMcClernan/LCB_NSSpeechLib, specifically the function I called "NSspeechSpeechStringToFile".
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iOS TextToSpeech extension for free

Post by trevix » Wed Mar 17, 2021 5:40 pm

rendering speech to a file (it can still be done but it's a bit more complicated),
Time went by and I still need to save TTS to var or file.
My App "Segnapunto" send data to a Raspberry that has an awful TTS (compared to iOS or Android phone).
May be because of the scarse processor or else. For me, the best solution would be to use the processing power of the phone to elaborate the TTS and then send the sound file only.
You mentioned that it can be done: big job? small job? payed job?
What do you think? Any suggestions?
I wrote on github to the two "computer science" students, but I didn't get an answer (I am not very familiar with GitHub so may be I didn't really get the message trough.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: iOS TextToSpeech extension for free

Post by jmburnod » Wed Mar 17, 2021 6:46 pm

Hi,
I read that you want export files to use on Raspberry.
If you have a Mac, You may do it with a applescript.
I' can send your mesage to authors of SpeechSynthetizer
I hope they can take some time (i believe they have exam session now).
Best regards
Jean-Marc
https://alternatic.ch

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iOS TextToSpeech extension for free

Post by trevix » Thu Mar 18, 2021 1:20 am

Thanks for answering.
But I need to do it from iOS and Android.
Let's see if they answer.
Regards
Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

PaulDaMacMan
Posts: 616
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: iOS TextToSpeech extension for free

Post by PaulDaMacMan » Thu Mar 25, 2021 12:41 am

trevix wrote:
Wed Mar 17, 2021 5:40 pm
rendering speech to a file (it can still be done but it's a bit more complicated),
Time went by and I still need to save TTS to var or file.
My App "Segnapunto" send data to a Raspberry that has an awful TTS (compared to iOS or Android phone).
May be because of the scarse processor or else. For me, the best solution would be to use the processing power of the phone to elaborate the TTS and then send the sound file only.
You mentioned that it can be done: big job? small job? payed job?
What do you think? Any suggestions?
I wrote on github to the two "computer science" students, but I didn't get an answer (I am not very familiar with GitHub so may be I didn't really get the message trough.
Like I said on macOS my Livecode Builder NSSpeech lib can already render speech to a sound file, on iOS it would have to be done with apple's AVSpeech API (which Comp.Sci student's LCB lib tapped into). I believe to render to a sound file with AVSpeech you have to create an audioGraph type setup capturing sound sample output as blocks you then pass to utility functions that write the blocks file in a format specified by parameters you pass. I have played around a bit with audioGraphs with LiveCode Builder but I've found it difficult and crash-prone (but that could just be me).
I'm a hobbyist, and not looking for freelance / commission work, sorry.

If I were you I'd probably look for some FOSS cross-platform library or web REST based API that fits your needs, web based would work well for the RPi
https://rapidapi.com/collection/best-te ... peech-apis
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iOS TextToSpeech extension for free

Post by trevix » Thu Mar 25, 2021 10:06 am

Thanks for the help but I need it to be offline, since not every Tennis court is going to have a internet wifi (my app Segnapunto is a sport App).
Simon wrote me:
Hi Trevix
Thanks for the interest and the suggestion. Unfortunately, we do not plan to add features to this extension, but you're welcome to code those features and propose a pull request, and we'll look into it.
After a quick glance at Apple's API, saving the speech as an audio file does not seem to be feasible though.
Thank you for your understanding and thank you again for your interest,

Best,
Simon
So I guees i better give up.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

Post Reply

Return to “Announcements”