mp3

Converting a 32 bit wave form to a 16 bit wave form

為{幸葍}努か 提交于 2019-12-12 09:09:09
问题 I've been capturing audio using the loopback capture mode. The captured waveform is a 32 bit waveform. I'm struggling with converting this to a 16 bit waveform so encoders like lame can deal with it (it says Unsupported data format: 0x0003). I've tried shifting the bits (not my strong point) in the wave stream itself from 32 bit to 16 bit but the result still sounds distorted. The Wave32To16Stream class seems to blow up on this case: if (sourceStream.WaveFormat.Encoding != WaveFormatEncoding

Preload MP3 File before using the Play button

僤鯓⒐⒋嵵緔 提交于 2019-12-12 08:54:32
问题 I have the following code: function playSound(source) { document.getElementById("sound_span").innerHTML = "<embed src='" + source + "' hidden=true autostart=true loop=false>"; } <span id="sound_span"></span> <button onclick="playSound('file.mp3');"></button> Once you click play, the MP3 gets downloaded, than it starts to play. However, it can take a while if it has like 1 MB. What I need is a preloaded (just like you can do with the images). So when the page loads, the mp3 will be streamed

Editing mp3 files in Java(ID3)

好久不见. 提交于 2019-12-12 08:53:54
问题 i'm kinda new in programming so i hope you can help me :) Lately, I've been trying to write sth that can change id3 tags of mp3 file. I managed to write code getting those tags quite easily, but i have no idea how to write code changing tags. I assumed that there may be no easy solution, so I decided to try out some libraries. It may be my fault, but none of them work.. Anyway, my question is : if it is quite simple - how to do my own id3 tag getting code? and if not, are there any libraries

Android Mp3 play from url

一个人想着一个人 提交于 2019-12-12 08:46:17
问题 How do I run the following tutorial using an online mp3 url? I tried replacing the url but it doesn't seem to be working. I want to use the same code but with the url. Does anyone have any suggestions? The tutorial linke: http://www.tutorialspoint.com/android/android_mediaplayer.htm The mp3 url is: http://searchgurbani.com/audio/sggs/1.mp3 回答1: How to play an .mp3 from the /raw folder: Download the .mp3 file, save it to song.mp3 and paste into the /raw folder. If you don´t have /raw folder,

How can I export an mp3 file from an iOS device's iPod library?

别说谁变了你拦得住时间么 提交于 2019-12-12 08:35:05
问题 In my iOS application I'm trying to export an mp3 file from the iPod library to the app's documents directory on the device. Currently I'm trying to use AVAssetExportSession but it's not working for mp3 files. It works well for m4a files. Is exporting an mp3 file possible using AVAssetExportSession? What is the appropriate outputFileType for AVAssetExportSession? ( AVFileTypeAppleM4A works for m4a files) Thanks! 回答1: I am facing the same problem. Unfortunately, non of the iOS frameworks

Convert Recorded sound in iphone from one format to another say wav to mp3

江枫思渺然 提交于 2019-12-12 08:15:06
问题 I am trying to record some audio and convert them to other sound formats. I am using AVAudioRecorder class to record and these are the recording settings I used.. NSDictionary *recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting setValue:[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey];//kAudioFormatMicrosoftGSM,kAudioFormatLinearPCM [recordSetting setValue:[NSNumber numberWithFloat:8000] forKey:AVSampleRateKey]; [recordSetting setValue:[NSNumber

Generating mp3 waveform with php

和自甴很熟 提交于 2019-12-12 08:13:30
问题 I need to build a web script that converts a mp3 file to a waveform image, and I came across this website. I’ve uploaded the PHP file and .dll and .exe file from LAMB to my website (hosted by host monster). But when I try uploading the MP3 file on the website, it just generates a black image instead of the waveform image. I have little knowledge of PHP, so I don’t exactly know what’s wrong, but I’m guessing it has to do with the uploading part of the program. Could anybody tell me what is

mp3 songs dont play in Firefox

可紊 提交于 2019-12-12 06:28:09
问题 I have been struggling for several hours about this. http://www.mysecretathens.gr/Sera/releases.html I am working on this project for a musician and the mp3 songs dont play in Firefox. Chrome, even IE plays them. Do you know why? Doesn't it support mp3 files? In the documentation of the script it says that you should also have .wav sounds of each file but I have around 25 songs and if I also upload the .wav sounds it would be too heavy. Is there a golden solution? Can I do something so that

strip off ID TAGS an other from raw MP3

依然范特西╮ 提交于 2019-12-12 05:49:01
问题 I want to get an clean Mp3 File, without any aditional data like id Tags, Cover Image, encoder info or what else. Just the mp3 in an valid file, wich can play every mp3 player. I started with this one: Access MP3 audio data independently of ID3 tags? http://code.google.com/p/kodebucket/source/browse/trunk/bin/mp3dump.rb It works nice to get an valid hash of the mp3 without id Tags, but when you save the output into an mp3 file, it's broken. Maybe you have there an idea, how to get this work.

C# Mediaplayer doesn't play mp3 file from resources

会有一股神秘感。 提交于 2019-12-12 05:13:50
问题 Mediaplayer didn't work for me, so I moved to a simple test project (C# Console App). I added my .mp3 file to the project like this: Right click project name (test) in solution explorer add folder resources Right click the resources folder in solution explorer Add my warn.mp3 file left click the warn.mp3 file Changed Build Action to Resource in the properties window. Sadly, this code doesnt work: namespace test { class Program { public static void Main(string[] args) { MediaPlayer player =