How to play audio on Corona? - audio

I am trying to play audio as i used to do but it seems not working now. These are the codes I tried:
local birdSound = audio.loadSound("bird.mp3")
audio.play(birdSound)
It gives an error like that:
WARNING: Failed to create audio sound
Can you help me out? Thanks.

Don't use .mp3. .wav works for both iphone and android.
Make sure the .wav file is in our folder.
Sometimes some sound file can be played on computer, but not works in simulator. In that case, use other files instead.
If you really like that .mp3 file and can not find .wav, find some free software to convert it.

Changing the bit rate(increasing) of my files helped me to solve the problem. Thanks to SatheeshJM!

Related

Raw sound files editors, 8bit

I was wondering if anyone knows how to open and edit a raw sound file (raw unsigned 8-bit).
I am making my own game and trying to create original 8-bit music.
I could not open SoX, and all other editors I have cannot play these frequencies correctly.
I appreciate all help.
try using beep box. you can recover work from the past 30 days. or, you can try import a .mid file. you can have 4 base notes, and set the instrements to 8-bit sounds, crunches and waves. hope it works for you! --> beepbox.org or search it up if this link doesnt work
(Not sponsered)

C# audio directory issue

Alright, I'm developing a speech recognition system which is working completely fine, I've had no problems with it up until now. And yes i did google search it and look to see if the question had already been answered, but nothing turned up.
What I did was save some text-to-speech lines and put them into the program, it worked fine up until about the 5th audio file, I ran it to try and test if it worked and the program crashed with this error:
NotSupportedException: The given path's format is not supported
which is weird because for every other audio file it worked, the code looks like this :
System.Media.SoundPlayer player8 = new System.Media.SoundPlayer(#"‪C:\Users\user\Desktop\JMAS LINE\15.wav");player8.Play();
It's strange because only specific ones work and don't work
Any help would be appreciated

Want to save Audio word in text file

I searched and found that it is possible to save audio word in a text file from a recorded audio file. Also found few softwares are available for this.
But don't get any algorithm or solution which is applicable for saving recognized audio word from live audio into a text file.
is there any expert or researcher who can help me to solve this problem?
Advance thanks to all expert.
What's your environment? Nowadays it could be possible online too!
Take a look here at Google Dev

Is there an ActionScript library for MP3 encoding than Shine-MP3-Encoder?

Is there an ActionScript library for MP3 encoding than Shine-MP3-Encoder? (https://github.com/kikko/Shine-MP3-Encoder-on-AS3-Alchemy)
This library works fine, but I wanted to find a similar solution (on ActionScript, not C) to optimize it for specific needs.
Thanks.
Dont wait for it. A pure AS3 library is impossible as the speed of AS3 is too slow to do MP3 encoding. You will need C++ via AIR Native Extensions (ANE) or Alchemy for this. ANEs work with Adobe AIR so you can publish your content as an app for desktop and mobile. I dont see any issue with it.
See these for ANE-based Mic recording:
ANE-RecordAudio
AirMicrophone
AirMicrophone-ANE
I recorded the mic into a WAV and then use ffmpeg -i d:/path/input.wav d:/path/output.mp3 to convert it instantly into an MP3. I delete the WAV when FFMPEG completes. FFMPEG is a cool little EXE you can just add to your project in any dir. I used Thibault's class to record into WAV.

Record screen and audio then generate to one video file in java.

I am writting a program as http://www.screencast-o-matic.com/. I used applet and import jmf.jar to my project. When I use it, it couldn't get anything capture devices so it couldn't capture audio and video.
I captured screen to video but it hadn't sound. I captured sound but it hadn't video. I use jmf to merger 2 stream to video file. But it error.
Everybody can help me to resol problem. Thanks your help.
You can use Xuggle-Xuggler http://www.javacodegeeks.com/2011/02/introduction-xuggler-video-manipulation.html API which is wrapper of FFmpeg command line tool. Both are open source.

Resources