play audioclip

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mickmac
Posts: 7
Joined: Fri Mar 15, 2013 6:32 am

play audioclip

Post by mickmac » Tue Apr 02, 2013 10:03 am

Hi there, having failed miserably to find out how to use text to speech on android I tried the play audioclip command. Alas no joy ... does this command work on android? According to the dictionary it does but I can't get it to go!

mickmac
Posts: 7
Joined: Fri Mar 15, 2013 6:32 am

Re: play audioclip

Post by mickmac » Tue Apr 02, 2013 10:18 am

mickmac wrote:Hi there, having failed miserably to find out how to use text to speech on android I tried the play audioclip command. Alas no joy ... does this command work on android? According to the dictionary it does but I can't get it to go!
Suppose I should add a little detail here .... I imported an audio file in .wav format, renamed it to hello and then
on mouseUp
play audioclip "hello"
end mouseUp
Worked on the pc but did not do anything on android emulator or actual android device, although other stuff worked fine.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: play audioclip

Post by jacque » Tue Apr 02, 2013 4:55 pm

Embedded audioclips are not supported in Android, you need to provide a file in the Copy Files pane of the standalone settings.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sincipient820
Posts: 25
Joined: Mon Feb 25, 2013 4:00 am

Re: play audioclip

Post by sincipient820 » Tue Apr 02, 2013 10:01 pm

Code: Select all

put specialfolderpath("engine") & "/hello.wav" into tSound
play tSound
and make sure to put the hello.wav file into copy files of standalone settings...

mickmac
Posts: 7
Joined: Fri Mar 15, 2013 6:32 am

Re: play audioclip

Post by mickmac » Thu Apr 04, 2013 7:58 am

Thanks heaps to those who helped ... working fine now. Hopefully the new livecode will support text to speech on android!

Post Reply