oggvorbis

Is there anyway to get ID3 metadata from an MP3 or Vorbis comments from Ogg via the HTML5 audio element?

扶醉桌前 提交于 2019-11-29 15:41:52
问题 Mozilla Developer Center's HTML5 media guide describes an event for audio and video elements called "loadedmetadata". Is there anyway to get the metadata for files? I am writing an HTML5 extension for Google Chrome and I don't know what the metadata for the audio files I'm creating a player for beforehand. Edit: This question seems to be kicking everyone's ass. :/ 回答1: According to this you can use filereader.readAsBinaryString(file); to get the binary data of the ID3 tag. filereader

How to encode Recorded voice to ogg vorbis?

陌路散爱 提交于 2019-11-29 00:13:05
I have recorded voice with android AudioRecord and I would like to convert it to ogg vorbis as it is patent free. I have try vorbis-java beta, but it seem not work or I make some mistake. Here are my code : int frequency = 44100; int channel = AudioFormat.CHANNEL_IN_STEREO; int mAudioSource = MediaRecorder.AudioSource.MIC; int mAudioEncoder = AudioFormat.ENCODING_PCM_16BIT; try { final File outputFile = new File(mOutputPath); DataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(outputFile))); int bufferSize = AudioRecord.getMinBufferSize(frequency, channel,

How can I play compressed sound files in C# in a portable way?

你。 提交于 2019-11-28 19:26:30
Is there a portable, not patent-restricted way to play compressed sound files in C# / .Net? I want to play short "jingle" sounds on various events occuring in the program. System.Media.SoundPlayer can handle only WAV, but those are typically to big to embed in a downloadable apllication. MP3 is protected with patents, so even if there was a fully managed decoder/player it wouldn't be free to redistribute. The best format available would seem to be OGG Vorbis, but I had no luck getting any C# Vorbis libraries to work (I managed to extract a raw PCM with csvorbis but I don't know how to play it