mp3

Android audio too fast on some devices with MediaCodec and AudioTrack

ぃ、小莉子 提交于 2019-12-23 12:43:18
问题 I am decoding audio using MediaExtractor , MediaCodec , and AudioTrack . I am configuring the AudioTrack using the MediaFormat returned by MediaCodec.getOutputFormat() after receiving MediaCodec.INFO_OUTPUT_FORMAT_CHANGED from the MediaCodec . On some devices, this results in speeded up audio, while the MediaFormat returned by the MediaExtractor works correctly. (On other devices, the reverse is true.) Here are some details: The audio files in question are largely 22050 Hz mono MP3s. The

How to do text to speech with python on a Toshiba laptop and Windows 7?

你说的曾经没有我的故事 提交于 2019-12-23 10:55:56
问题 I am trying to find a way to create text to speech in python (I am on windows 7). I am using pyinstaller to compile this program. I have tried a large number of approaches, including using Google's unofficial text to speech program accessed through the urllib2 module. This ends up creating an mp3 file. For details on the code, much of this code is from http://glowingpython.blogspot.com/2012/11/text-to-speech-with-correct-intonation.html. I have then needed to play the mp3 file that this

Determine the length (in milliseconds) of an mp3 file in VB.net

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 06:07:33
问题 Is there a way to get the time length of an mp3 in VB.net? I have TagLib, but it doesn't seem to have any functionality for it. 回答1: I think you are looking for the TagLib.File.Properties.Duration, which returns a TimeSpan object. From there you can use TotalSeconds to get the length of the mp3 in seconds. 回答2: add this to timer of track bar and dont forgot to add label in Label4.Text = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.durationString player 来源: https://stackoverflow.com/questions

apply for .pcm file as sox

青春壹個敷衍的年華 提交于 2019-12-23 05:28:16
问题 I want to exchange 16kHz pcm --> 48kHz wav using sox. however, pcm file isn't applied in sox. so, I just changed pcm to raw, and then sox -r 16000 -e signed -b 16 -c 1 test.raw -r 48000 out.wav Can I apply for pcm file not convert raw? 回答1: For the PCM file, since PCM's are headerless, you need to add '-t raw' as the first argument. sox -t raw -r 16000 -e signed -b 16 -c 1 test.raw -r 48000 out.wav Try that out. Also try the different Endian settings; -L; -B; -x though only use one at a time,

Converting 3gp/amr audio file to mp3 in java

三世轮回 提交于 2019-12-23 04:45:41
问题 I need to convert the recorded audio file which is in 3gp format to mp3 format. Any suggestions pls. 回答1: Rather messy, but you could try this: Use isobox4j (see https://contributions.coremedia.com/isobox4j/wiki/IsoParser) to read the AMR audio out of the 3gp file. Use one of the options listed in How to encode a WAV to a mp3 on a Android device to encode it. Never used isobox4j: started working with it but moved on to a different project before I was done but it looks like it will give you

playing mp3 from nsbundle

烈酒焚心 提交于 2019-12-23 04:07:33
问题 SETUP I put a mp3 into my bundle just for testing, i will have them download into the documents directory. But for now i am going to work off the bundle. I have found a couple tutorials, but not anything for what i need. The below is definitely a mix of a couple solutions and probably not the best approach. Problem How do i pull a song out of my bundle and play within the app? //Create an instance of MPMusicPlayerController MPMusicPlayerController* myPlayer = [MPMusicPlayerController

Get sound from a URL with Java

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:02:09
问题 I'm learning english and I'd like to develop a software to help me with the pronunciation. There is a site called HowJSay, if you enter here: http://www.howjsay.com/index.php?word=car immediatly you'll hear the pronunciation of the word car . I'd like to develop a software in JAVA that could play this sound without necessity of enter in the site =] I tried this, but doesn't work =/ public static void main(String[] args) throws Exception { URL url = new URL("http://www.howjsay.com/index.php

C# how to read things like ID3 tag for a video files [closed]

天大地大妈咪最大 提交于 2019-12-23 02:55:23
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . I was wondering if there anyway to read things like ID3 tag for a video file? Sultan 回答1: Check out TaglibSharp http://www.novell.com/products/linuxpackages/opensuse11.1/taglib-sharp.html 回答2: Try to use taglib-sharp.dll may help. 来源: https://stackoverflow.com/questions/4411519

Mp3 Play from Stream on C#

女生的网名这么多〃 提交于 2019-12-23 02:53:04
问题 I have music urls. Urls like http://site.com/audio.mp3 . I want play this file online, like youtube. Do you know a class or code can do this ? 来源: https://stackoverflow.com/questions/7556672/mp3-play-from-stream-on-c-sharp