speex

Compile libogg for iOS using Xcode5.1 error

假装没事ソ 提交于 2019-12-08 13:02:14
问题 Environment: Mac OS X 10.9.2, Xcode 5.1. Build shell scripts as below: #!/bin/sh set -xe VERSION="1.3.1" DESTDIR="libogg-built" #ARCHS="i386 x86_64 armv7 armv7s arm64" rm -rf $DESTDIR mkdir $DESTDIR if [ ! -e "libogg-$VERSION.zip" ]; then curl -LO http://downloads.xiph.org/releases/ogg/libogg-$VERSION.zip fi unzip -oq libogg-$VERSION.zip cd libogg-$VERSION ./configure for ARCH in $ARCHS; do mkdir -p ../$DESTDIR/$ARCH IOSMV="-miphoneos-version-min=4.3" case $ARCH in arm*) if [ $ARCH == "arm64"

Compile libspeex for iOS using Xcode5.1 error

情到浓时终转凉″ 提交于 2019-12-08 05:30:34
问题 See also: Compile libogg for iOS using Xcode5.1 error Environment: Mac OS X 10.9.2, Xcode 5.1. There are two shell scripts to build libogg and libspeex, where locates in the same directory. The libogg build scripts is as below: #!/bin/sh set -xe VERSION="1.3.1" BUILDDIR=`pwd` DESTDIR="libogg-built" ARCHS="i386 x86_64 armv7 armv7s arm64" rm -rf $DESTDIR mkdir $DESTDIR if [ ! -e "libogg-$VERSION.zip" ]; then curl -LO http://downloads.xiph.org/releases/ogg/libogg-$VERSION.zip fi unzip -oq libogg

Adding JSpeex Jar file to Blackberry Project

早过忘川 提交于 2019-12-08 05:23:06
问题 I am trying to add JSpeex's jar file to Blackberry project. Compilation fails if I add it. Also, if I add source files to the project, compilation fails as JSpeex is pure Java and classes are not supported in Blackberry app. Please help me to resolve the issue... Thanks in advance. 回答1: Pure Java? Keep in mind that the Blackberry JVM is still based on J2ME, which is kind of a subset of java. To include external JAR follow the Knowledge Base Entry How To - Compile a jar file into a BlackBerry

speex splitted audio data - WebAudio - VOIP

大憨熊 提交于 2019-12-07 13:20:20
问题 Im running a little app that encodes and decodes an audio array with the speex codec in javascript: https://github.com/dbieber/audiorecorder with a small array filled with a sin waveform for(var i=0;i<16384;i++) data.push(Math.sin(i/10)); this works. But I want to build a VOIP application and have more than one array. So if I split my array up in 2 parts encode>decode>merge, it doesn't sound the same as before. Take a look at this: fiddle: http://jsfiddle.net/exh63zqL/ Both buttons should

Adding JSpeex Jar file to Blackberry Project

◇◆丶佛笑我妖孽 提交于 2019-12-06 14:36:50
I am trying to add JSpeex's jar file to Blackberry project. Compilation fails if I add it. Also, if I add source files to the project, compilation fails as JSpeex is pure Java and classes are not supported in Blackberry app. Please help me to resolve the issue... Thanks in advance. Pure Java? Keep in mind that the Blackberry JVM is still based on J2ME , which is kind of a subset of java. To include external JAR follow the Knowledge Base Entry How To - Compile a jar file into a BlackBerry Library Another way is to extract your jar file (change the file ending to .zip instead of .jar and extract

Adobe flash : Playing Speex Audio from a file

天涯浪子 提交于 2019-12-06 05:25:43
I have tried really hard to find an example showing how to play speex encoded audio in flash. I tried the following code - var connect_nc:NetConnection = new NetConnection(); connect_nc.connect(null); var stream_ns:NetStream = new NetStream(connect_nc); stream_ns.play("RE-Sample.m4a"); avaible at - http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player _03.html I tested the above code with .flv videos and AAC encoded audio files and it works just fine. But when I try stream_ns.play("sample.spx") I get a stream not found exception. Am I using the wrong container (.spx) for speex

speex splitted audio data - WebAudio - VOIP

只谈情不闲聊 提交于 2019-12-05 20:03:22
Im running a little app that encodes and decodes an audio array with the speex codec in javascript: https://github.com/dbieber/audiorecorder with a small array filled with a sin waveform for(var i=0;i<16384;i++) data.push(Math.sin(i/10)); this works. But I want to build a VOIP application and have more than one array. So if I split my array up in 2 parts encode>decode>merge, it doesn't sound the same as before. Take a look at this: fiddle: http://jsfiddle.net/exh63zqL/ Both buttons should give the same audio output. How can i get the same output in both ways ? Is their a special mode in speex

in flex, is it possible to embed speex files?

不羁的心 提交于 2019-12-05 11:04:57
问题 Flash 10 supposedly has support for the Speex audio format. I'd like to embed some Speex files in my SWF: [Embed(source='assets/test.spx',mimeType='audio/x-speex')] private static const SpeexSound:Class; However, I get the error: no transcoder registered for mimeType 'audio/x-speex' Any ideas? 回答1: Speex is not a real transport format -- it has no framing built into the protocol, so it is typically wrapped in an OGG stream (whose API is unfortunately more complicated than the Speex API itself

Packing Speex with Ogg on iOS

老子叫甜甜 提交于 2019-12-04 15:46:06
问题 I'm using libogg and libogg, I've succeeded to add those libraries to my iPhone xCode project and encode my voice with Speex. The problem is that I cannot figure out how to pack those audio packet with ogg. Does someone know how a packet of that kind should look like or have a reference code I can use. I know in Java it's pretty simple (you have a dedicated function for that) but not on iOS. Please help. 回答1: UPD 10.09.2013: Please, see the demo project, which basically takes pcm audiodata

speex decoding going wrong

纵然是瞬间 提交于 2019-12-04 15:35:42
I'm using speex to encode some audio data and send it over UDP, and decode it on the other side. I ran a few tests with speex, and noticed that if I decode a packet straight after I encoded it, the decoded data is in no way close to the original data. Most of the bytes at the start of the buffer are 0. So when I decode the audio sent over UDP, all I get is noise. This is how I am encoding the audio: bool AudioEncoder::encode( float *raw, char *encoded_bits ) { for ( size_t i = 0; i < 256; i++ ) this->_rfdata[i] = raw[i]; speex_bits_reset(&this->_bits); speex_encode(this->_state, this->_rfdata,