mp3

Ruby mp3 Id3 parsing

我的未来我决定 提交于 2019-12-20 09:47:21
问题 Currently I'm working on a music project, dealing with user mp3 uploads. The problem is that I can't find an id3 library that will work correctly for all files. I have tried id3-ruby and Mp3Info libs but none of them gives me consistently correct results. For example, most common problems: wrong stream parameters (bitrate and sample rate, sometimes duration) doesn't support extended tags I decided to add a form, where users can supply optional information like Artist and title; that helped a

How to read ID3 Tag in an MP3 using Python? [closed]

久未见 提交于 2019-12-20 09:37:42
问题 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 . Does anyone has an experience of reading and writing ID3 tags in an MP3 file or a WMA file? There are some libraries but I would like to do it from the scratch. :-) 回答1: Dive into Python uses MP3 ID3 tags as an example. 回答2: Mutagen https://bitbucket.org/lazka/mutagen Edited 14

Generate visual (waveform) from MP3/WAV file in Windows 2008 Server?

南笙酒味 提交于 2019-12-20 09:36:58
问题 Is there (somewhere) a command-line program for Windows which will create PNG/JPEG visual from MP3/WAV? EDIT: This is a good example of how the image should look like. 回答1: Sox, "the Swiss Army knife of audio manipulation", can generate accurate PNG spectrograms from sound files. It plays pretty much anything, and binaries are available for Windows. At the most basic level, you'd use something like this: sox my.wav -n spectrogram If you want a spectrogram with no axes, titles, legends, and a

Writing a Python Music Streamer

风流意气都作罢 提交于 2019-12-20 08:41:39
问题 I would like to implement a server in Python that streams music in MP3 format over HTTP. I would like it to broadcast the music such that a client can connect to the stream and start listening to whatever is currently playing, much like a radio station. Previously, I've implemented my own HTTP server in Python using SocketServer.TCPServer (yes I know BaseHTTPServer exists, just wanted to write a mini HTTP stack myself), so how would a music streamer be different architecturally? What

How to convert any mp3 file to .wav 16khz mono 16bit

别来无恙 提交于 2019-12-20 08:40:31
问题 Please, help to choose solution for converting any mp3 file to special .wav - I'm a newbie with Linux command line tools, so It's hard for me right now. I need to get wav with 16khz mono 16bit sound properties from any mp3 file. I was trying ffmpeg -i 111.mp3 -ab 16k out.wav, but I got wav with the same rate as mp3 (22k). Please, help to construct right command line 回答1: kdazzle's solution is almost there - it still output a stereo wav, here is a slightly modified version that generate mono:

Javascript audio loop

放肆的年华 提交于 2019-12-20 06:34:36
问题 I want to play an audio in background 3 times and after 3 times the audio will stop automaticlly. I've tried this code and it did not work. HTML CODE: <audio id='beep' controls> <source src="beep-02.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> JAVASCRIPT: var count = 1 document.getElementById('beep').addEventListener('ended', function(){ this.currentTime = 0; if(count <= 3){ this.play(); } count++; }, false); Thanks. 回答1: You could try using onended:

Java - Convert ogg to mp3

故事扮演 提交于 2019-12-20 06:00:59
问题 I'm writing a Java program and I'd like to convert a ogg file into mp3 file. I've spend a lot of time trying to find a good library to do that, but without success for the moment. I think I'll need a ogg decoder (jorbis ?) and a mp3 encoder (lameOnJ ?). Moreover, once the conversion is done, I need to set some tags in the file (artist/track tag, etc). This is a windows and OS X app. Could you give me any hint about how to process, with examples if possible. Thanks 回答1: You have lots of

after using python mutagen,metatags not displayed

大兔子大兔子 提交于 2019-12-20 05:53:46
问题 I wanted to edit the meta data of a bunch of mp3 files,so I used python mutegan. The details of the mp3 file before running mutagen I used this simple code to change the details of the mp3 file. from mutagen.easyid3 import EasyID3 audio = EasyID3("C:/wamp/www/music/songs/showkali.mp3") audio['genre']='pop' audio.save() After running the program the details cannot be seen in the properties. The details of the mp3 file after running mutagen I figured out this is due to change in id3 tag version

Can you make an embedded MP3 keep playing from where it left off?

自作多情 提交于 2019-12-20 05:41:17
问题 Is it possible to make an mp3, that is embedded in a webpage, keep playing from where it left off if the page is reloaded? Perhaps into a cookie or with any other method. <embed src="track1.mp3"></embed> For example: track1.mp3 is embedded in a webpage; it is 3 minutes long. A visitor loads the webpage and listens to the first 1 minute and 25 seconds of the track; then closes the webpage. Can I make track1.mp3 start playing from 1 minute and 25 seconds the next time that person visits the

Compress wav file to wma on Windows Phone 8

天涯浪子 提交于 2019-12-20 05:38:12
问题 I am looking to encode a wav file in wma (or mp3, ogg, etc) on Windows Phone. I have not found any resources online. Any ideas on how I can archive this? I am trying to record a voice from the microphone and upload it from the phone. That's why I prefer to compress the audio file before sending it. 回答1: Starting from Windows Phone 8.1, you can use MediaTranscoder class for that. Also, since WP 8.0 you can use AudioVideoCaptureDevice to record directly into the compressed format. Unfortunately