µ-law (a.k.a. mu-law) is an algorithm used in audio processing.
Questions tagged [mu-law]
28 questions
5
votes
3 answers
Python u-Law (MULAW) wave decompression to raw wave signal
I googled this issue for last 2 weeks and wasn't able to find an algorithm or solution. I have some short .wav file but it has MULAW compression and python doesn't seem to have function inside wave.py that can successfully decompresses it. So I've…

Danilo
- 1,017
- 13
- 32
4
votes
1 answer
Converting a real-time MP3 audio stream to 8000/mulaw in Python
I'm working with an API that streams real-time audio in the MP3 format (44.1kHz/16bit) and I need to convert this stream to 8000/mulaw. I've tried several solutions, but all have run into issues due to the structure of the MP3 data.
My current…

user60108
- 3,270
- 2
- 27
- 43
4
votes
2 answers
How to use twilio bi-directional stream feature to play raw audio data
I'm using Twilio Programmable Voice to process phone calls.
I want to use bi-directional stream feature to send some raw audio data to play by twilio, the initialization code looks like,
from twilio.twiml.voice_response import Connect,…

Harrison
- 313
- 3
- 15
3
votes
2 answers
Encode LINEAR16 audio to Twilio media audio/x-mulaw | NodeJS
I have been trying to stream mulaw media stream back to Twilio. Requirement is payload must be encoded audio/x-mulaw with a sample rate of 8000 and base64 encoded
My input is from @google-cloud/text-to-speech in LINEAR16 Google Docs
I tried…

HugeBelieve
- 304
- 1
- 7
2
votes
1 answer
How to Transcode Opus codec to G.711 codec in C#
I am currently working with Mumble VoIP 1.2.X server-client communication protocol. My job is to create a desktop client where the client is connected with the server and receive other client's audio streams. I am receiving the stream in opus codec.…

sebu
- 2,824
- 1
- 30
- 45
2
votes
1 answer
Capture audio from WasapiLoopbackCapture, and convert to muLaw
I'm capturing audio with WasapiLoopbackCapture
- format = IeeeFloat
- SampleRate = 48000
- BitsPerSample = 32
I need to convert this to muLaw (8Khz, 8 bit, mono) - eventually it'll be sent to a phone via SIP trunking. I've tried 100s of…

KBoek
- 5,794
- 5
- 32
- 49
2
votes
1 answer
Is it possible to stream multiple channels of u-law audio over RTP?
I'm currently recording audio with 8000 samples per second, 8 bits per sample, and one channel and sending them to another machine using RTP.
Would I create a two-channel buffer consisting of u-law audio before sending an RTP packet? Something like…

Gabe
- 51
- 3
2
votes
1 answer
Write silence audio data into file ffmpeg C++
I want to write silence/zeroed audio sampled data into mov media container file inside audio data. My audio data is G711 linear PCM-mulaw encoded data with one channel. Currently my code looks like:
AVFrame* pSilentData =…

Kaidul
- 15,409
- 15
- 81
- 150
1
vote
0 answers
Audio written to Twilio websocket in x-audio/mulaw 8kHz is garbage
I'm currently using a text-to-speech system to write desired text to a websocket using the Twilio Connect functionality. As they mention in their documentation here, they want the audio to be Base64 encoded $\mu$-law audio at 8 kHz. The TTS system I…

Viraj Mehta
- 11
- 2
1
vote
0 answers
Convert aws polly synthesizeSpeech response to twilio mulaw format in NodeJs
I have a Twilio bi-directional stream running, so when I get the Twilio payload I process them and respond back, while responding back I am using aws-sdk Polly service to get the text-to-speech data,
which is of type audio/PCM in a signed 16-bit,…

Naresh_Varma
- 59
- 5
1
vote
0 answers
Converting Twilio mu-law 8Hz for real-time playback with Discord.js
Can you help me convert Twilio mu-law 8Hz audio format into a playable format for real-time use in Discord.js? I'm trying to create a Discord bot that can stream audio received from a Twilio call, but I'm having trouble with the format conversion.…

Axio Axio
- 11
- 2
1
vote
0 answers
Google tts Invalid encoding type only for MULAW audioEncoding
I would like to use the google Text to speech API with a MULAW 8Khz output audio format.
I am using the code provided by Google :
const text = 'Texte que vous souhaitez vocaliser'
const outputFile = 'testJaf.ulaw';
const languageCode =…

jaf
- 21
- 2
1
vote
0 answers
NAudio SampleProvider for MuLaw encoded audio files
I have a method generating waveform data (using NAudio SampleProviders) from the audio files which was working properly till now. But today we noticed this method is generating wrong results for some specific audios. After examining I realized that…

ozdogan
- 227
- 1
- 4
- 12
1
vote
1 answer
I want to record from iphone microphone and convert to ulaw format streaming
I want to record from iphone microphone and convert to ulaw format streaming data,I guess that is pcm data but I got noise.
What audio format is installTap buff? How can I do to got ulaw data format?
I can got it from AVAudioRecorder but I'm not to…

ays
- 21
- 2
1
vote
1 answer
How to send WebRTC audio from Kurento to Avaya phones
I am successfully using Kurento's RtpEndpoint type to connect to several Asterisk SIP servers as well as directly to several models of SIP phone, but connections to Avaya SIP servers do not work, and I am trying to figure out why. The symptom is…

Moshe Katz
- 15,992
- 7
- 69
- 116