mp3

NoDriver calling acmFormatSuggest on Azure

本小妞迷上赌 提交于 2019-12-13 07:26:02
问题 I am Using NAudio for getting MP3 file information as well merging 2 or more MP3 files. It works fine on localhost but when I publish the site on AZURE it throws error "NoDriver calling acmFormatSuggest" 回答1: I assume that you are trying to use something that is not installed on the machine in Azure - in your case it is ACM MP3 decoder. On a client Windows it can be pre-installed, but i do not think that server Windows can have it. Also i suspect that something like that will not be allowed

Python Pyaudio — How to play a file streamed via HTTP

﹥>﹥吖頭↗ 提交于 2019-12-13 05:35:50
问题 I am trying to figure out how to play an mp3 that exists on my server served through HTTP. I tried to figure out pyglet but there were too many issues with AVBin to make that work (something about dividing by zero in the source code). So, I decided to try PyAudio, but I can't figure out how to stream an mp3 source from HTTP with it. All the examples are wav files and I need examples rather than the docs or I'm afraid I'll have to figure out the particulars of how audio works on the lowest

can not play mp3 files which have spaces between strings on a Lenovo Device (Android)

*爱你&永不变心* 提交于 2019-12-13 05:31:37
问题 I working on an Android App which should play different audio files (mp3) onClick. Some of the files have longer strings with spaces between the words, e.g: 1. path/dir1/dir2/this is a song.mp3 2. path/dir1/dir2/this.mp3 so if the user clicks on the play button and the chosen file exists in the database, it runs the path. All the devices can run number 2 without any problem. That is, files which do not contain any spaces between words. Other devices are able to play any kind, that is both 1 &

unable to import javax.media.*; (package does not exist) Why does it say so?

这一生的挚爱 提交于 2019-12-13 05:13:53
问题 I have downloaded JMF MP3 PLUGIN to play mp3 files. After downloading i place mp3plugin.jar into the project library of netbeans. Then i start the code with the line : import javax.media.*; But there is an error corresponding to this statement which says package javax.media does not exist. Why do i get this error ? I have tried searching about it but haven't found the solution. Please help me in this. I have also placed C:\Program Files\Java\jdk1.7.0\jre\lib\ext\mp3plugin.jar in the classpath

Set notification sound as default

点点圈 提交于 2019-12-13 04:25:01
问题 I'm using this code to set a sound as a notification message after I saved the sound: ---------------after saving--------------- File k = new File("/sdcard/Bizzsound/", "b1.mp3"); ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DATA, k.getAbsolutePath()); values.put(MediaStore.MediaColumns.TITLE, "sound1"); values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); values.put(AudioColumns.ARTIST, "artist"); values.put(AudioColumns.IS_RINGTONE, true); values.put

Play .mp3 in Java

此生再无相见时 提交于 2019-12-13 04:24:16
问题 I know this question has already been asked on this site before, but my question deviates from it a little. I want to play a .mp3 file without using external Java libraries such as javafx . Is this possible, and if so, how do you do it? I have nothing against the library javafx , I just want to know for educational purposes. I know that with the javax libraries you can play .wav files quite easily. public void playSound() { try { AudioInputStream audioInputStream = AudioSystem

How to retrieve thumbnail picture of an mp3 file using java

有些话、适合烂在心里 提交于 2019-12-13 04:21:55
问题 I have problem getting mp3 file thumbnail using java, for example we have file: File MP3File = new File(<directory>); So, How can i retrieve its thumbnail? Thanks for your attention, any ideas would be appreciated. 回答1: Something like this might work: Image icn=((ImageIcon) FileSystemView.getFileSystemView().getSystemIcon(new File(<directory>))).getImage(); icn = icn.getScaledInstance(32,32, Image.SCALE_SMOOTH); 回答2: Try to get the metadata from the mp3 file, see mp3agic from github.

download a .mp3 file on Website with NSSURLConnection

吃可爱长大的小学妹 提交于 2019-12-13 03:49:18
问题 I want to download a .mp3 file on a Website with NSSURLConnection , however only the first 357 bytes of the 2.5 mb file are downloaded. I tried to increase the buffer size and the timeout of the request, but I still can't get the entire .mp3 file on the iPhone. This URL of the file is: http://dl.mp3.kapsule.info/fsfsdfdsfdserwrwq3/fc90613208cc3f16ae6d6ba05d21880c/4b5244f0/b/7e/b7e80afa18d06fdd3dd9f9fa44b51fc0.mp3?filename=Every-Day-I-Love-You.mp3 How can I make the iPhone download the whole

iOS/Android background audio streaming

时光总嘲笑我的痴心妄想 提交于 2019-12-13 03:44:25
问题 I am considering using phonegap to target both ios and android. But before I start I need to know for sure if, and how, I can have background audio streaming. I would have a url to a fixed length mp3 somewhere on the web, and I need to play this whether the app is open or in the background, and be able to keep track of when the mp3 ends. Any notes, personal experience in this regard, links, etc. would be great. Thanks 回答1: I do not know the answer for Android, but for iOS it is possible to

Android - MP3 JLayer missing data

余生长醉 提交于 2019-12-13 03:23:23
问题 I have a server that encodes real-time voice into mono or stereo mp3 thanks to libmp3lame and sends it chunk by chunk through a WebSocket. I'm trying to make an Android App that receives those mp3 chunks and play them with the most appropriate Audio player Android have. I went with AudioTrack since it seems pretty easy to add chunks to the player as well as "stream" oriented. (Since what I'm doing is sending to the track some byte array and not a full song that is locally stocked in the