Jump to content

Recommended Posts

I made a script called - SPEAK assigned to a button

as we know by pressing esc on keyboard we can pause a script

but i want to stop the above script  called SPEAK using 

Code ( Get(TriggerKeystroke) ) = 9 that is equal to TAB key HELP me please ???

Share this post


Link to post
Share on other sites

I don't think that's possible. The speech is performed by the OS and no user actions are registered by FMP while it's in progress. Also, a triggered script has no option to pause, exit or halt a running script.

Share this post


Link to post
Share on other sites

You could make a loop that loops over every word, speaks that word and checks for a keystroke after each spoken word? It might cause an unnatural stutter though.

Share this post


Link to post
Share on other sites

You could use a text-to-speech web service like the one I used for the 2018 Devcon (https://www.soliantconsulting.com/blog/filemaker-devcon-2018-billy-bass-1/) and have it produce an mp3 file.  Once you have it on a container you can use the AV player functionality of the container to start and stop it.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.