mp3

How to convert base64 wav to base64 mp3 in JavaScript

℡╲_俬逩灬. 提交于 2019-12-11 03:58:58
问题 I have a trouble in my app. I want to record a sound and store it in iOS using Cordova. I have already a base64/wav file, but it's very heavy so I want to convert it into a base64/mp3. Which is the algorithm that allows me to do that? Example: b64Wavtob64mp3("base64/..."); // Return a mp3 base64 Thanks in advance! 回答1: I forgot completely base64 because I was looking for a audio compressed Solved! I did it with a wav2m4a plugin. https://github.com/xu-li/phonegap-wav2m4a But I wanted to go

Powershell editing mp3 infos

烈酒焚心 提交于 2019-12-11 03:27:12
问题 I'm searching for a way to edit mp3 files info (like artist, album, etc) in a PowerShell script. I found a way to get the info I need on the .mp3 files, but not how to modify them. $songs = Get-ChildItem $dir -Filter *.mp3; $shell = new-object -com shell.application; Foreach ($song in $songs) { $shellfolder = $shell.namespace($dir); $shellfile = $shellfolder.parsename($song); $title = $shell.namespace($dir).getdetailsof($shellfile,21); } With getDetailsOf (with 21) I'm able to get the song

Downloadable Mp3 Files from php headers not working

拥有回忆 提交于 2019-12-11 02:28:57
问题 hello there okay so this is the deal i have my mp3 files on my server and each one is in its own folder. in that folder is the mp3 and a php file with the following script: <?php // We'll be outputting a PDF header('Content-type: audio/mp3'); // It will be called file.mp3 header('Content-Disposition: attachment; filename="mysong.mp3"'); // The PDF source is in original.mp3 readfile("mysong.mp3"); ?> the problem is that when i click to go that php page the headers are suppose to make it so

Need help about sound processing

浪子不回头ぞ 提交于 2019-12-11 01:51:29
问题 How to get the sample data from stereo sound file (.mp3) and push them into the buffer? Is there any specific library with that function? Sorry if the question is really noob, I'm very new to audio programming. Thanks in advance =) 回答1: "The only way you can play an MP3 file via direct Android API is MediaPlayer which is heavyweight, slow and presents only high-level API. If you need to mix or modify audio streams or manage them with low latency, you are on your own." (Via: http:/

How to play an MP3 File using Java?

我的未来我决定 提交于 2019-12-11 01:26:31
问题 Using Applet.AudioClip I'm able to play .wav files, but if I try to do that on an MP3 file, then no audio seems to get played even though no exceptions are thrown. Is there any way to play MP3s with Java, whether using Swing, Java FX, or any other Java technologies? 回答1: package test; import java.io.File; import javax.media.Format; import javax.media.Manager; import javax.media.MediaLocator; import javax.media.Player; import javax.media.PlugInManager; import javax.media.format.AudioFormat;

JAVA - Xuggler - Play video while combining an MP3 audio file and a MP4 movie

两盒软妹~` 提交于 2019-12-11 01:13:15
问题 Using JAVA and Xuggler - the following code combines an MP3 audio file and a MP4 movie file and outputs a combined mp4 file. I want outputVideo file should be play automatically while combining audio and video file. String inputVideoFilePath = "in.mp4"; String inputAudioFilePath = "in.mp3"; String outputVideoFilePath = "out.mp4"; IMediaWriter mWriter = ToolFactory.makeWriter(outputVideoFilePath); IContainer containerVideo = IContainer.make(); IContainer containerAudio = IContainer.make(); //

android mp3 file download

空扰寡人 提交于 2019-12-11 01:06:51
问题 hello friends I need to download mp3 file from the internet and to store it into the assets folder and also it must be played into the media player. How can i do it? 回答1: Downloading a file, see here. Storeing to asset folder: not possible, you cannot modify your resources or assets after compile time. Store the file to the sdcard, see here. Use MediaPlayer to launch the file. 来源: https://stackoverflow.com/questions/5729839/android-mp3-file-download

php with mp3 header browser media player can't determine length

心已入冬 提交于 2019-12-11 00:54:30
问题 test.php code: $path = 'audio.mp3'; header("Content-type: audio/mpeg"); header('Content-Transfer-Encoding: binary'); header('Content-Disposition: inline; filename="'.$path.'"'); header("Content-length: ".filesize($path)); readfile($path); html code: <iframe src="test.php"></iframe> this will play the .php as a .mp3, but i will not be able to access the navigation slider in the browser media player. i click on the slider in several different places, but nothing will happen. when i change the

Naudio NoDriver error in .NET

こ雲淡風輕ζ 提交于 2019-12-11 00:44:17
问题 I get the exception "NoDriver calling acmFormatSuggest" when executing this function: private static WaveChannel32 OpenMp3Stream(string fileName) { WaveChannel32 inputStream; WaveStream mp3Reader = new Mp3FileReader(fileName); WaveStream pcmStream = WaveFormatConversionStream.CreatePcmStream(mp3Reader); WaveStream blockAlignedStream = new BlockAlignReductionStream(pcmStream); inputStream = new WaveChannel32(blockAlignedStream); return inputStream; } On this line: WaveStream pcmStream =

Android MediaPlayer Error(1, -2147483648) when playing an mp3 locally

99封情书 提交于 2019-12-10 20:18:51
问题 Shortly after Android 4.4 came out my code which has been working correctly since 2.2 suddenly went buggy. My code will query the music database for a given music file. The path is returned in the query and this path is then passed onto the MediaPlayer. Code: String uri = "content://media/internal/audio/media"; String[] columns = [audio_id as _id, title, album, artist, album_id, _data]; String where = "album = 'XX'"; Cursor c = this.getContentResolver().query(uri, columns, where, null,