µ-law (a.k.a. mu-law) is an algorithm used in audio processing.
Questions tagged [mu-law]
28 questions
1
vote
0 answers
Generate .wav audio file with "ulaw" encoding in Android
I'm trying to generate a wav file with ulaw encoding from raw pcm data.
I have tried some of the solutions by finding in google and here, but I can't seem to make the audio nicely playable. Its noisy and sort of screenching sound. May be the audio…

Lavanya
- 3,903
- 6
- 31
- 57
1
vote
1 answer
Creating a mulaw audio file from L16
I have a wave file with these properties.
sampling rate = 16000 Hz
encoding = L16
channels = 1
bit resolution = 16
I want to make 2 pipelines
1) I am throwing this file contents as RTP packets on port=5000
2) listen to port=500…

RC0993
- 898
- 1
- 13
- 44
1
vote
0 answers
Converting mono PCM to uLaw code to stereo
I have some c# code that has two functions. One converts linear PCM data to MuLaw format. The other function converts it back.
public static Byte[] LinearToMulaw(Byte[] bytes, int bitsPerSample, int channels)
public static Byte[]…

Tom
- 527
- 1
- 8
- 28
1
vote
1 answer
Conversion from u-law to PCM, 16 bit
I am currently using two functions in my C source code to convert A-law files to PCM 16 bit and U-law files to PCM 16 bit. The conversion of U-law files to PCM 16 bit is not successfull. There is a lot of noise to the produced PCM 16 bit file.
Below…

A.Lap
- 11
- 2
0
votes
0 answers
I'm trying to convert ulaw PCM to Linear PCM in Java
Created code to change the PCM file encoded in java to ulaw to Linear PCM in a normal way.
Because it's a test code, it's simple to configure, and when you run it, the ulaw PCM is converted to a specific folder as Linear PCM.
So I got the file and…

SummerBoot
- 1
- 2
0
votes
0 answers
Speaker outputs bursts of static when running Node.js WebSocket server with “audio/x-mulaw” data from Twilio
I'm trying to create a Node.js WebSocket server that receives audio data in the form of a base64-encoded string from Twilio. The decoded audio data is then written to the speaker using the write() method. Twilio says that it sends data in…

Gabe Koleszar
- 45
- 5
0
votes
1 answer
Nodejs/c++ addon - getting error "undefined symbol: speech_config_from_subscription" from Microsoft speech SDK on ubuntu 18.4 server
Actually, I want to do speech transcription with passing MULAW (g711) audio format to microsoft-speech-sdk (Nodejs), but MULAW streaming audio format is not supported to microsoft-speech-sdk (Nodejs).
So, for this required GStreamer with C++.
So,…

Tushar Kadam
- 173
- 1
- 1
- 9
0
votes
2 answers
does converting from mulaw to linear impact audio quality?
I want to change audio encoding from mulaw to linear in order to use a linear speech recognition model from Google.
I'm using a telephony channel, so audio is encoded in mulaw, 8bits, 8000Hz.
When I use Google Mulaw model, there are some issue with…

ylvi-bux
- 37
- 6
0
votes
1 answer
How to convert ulaw format file to wav format reactjs
I am trying to play .ulaw format in reactjs, I didn't find any straight forward way to play the ulaw file. So I tried to convert ulaw format to wav, by using the wavfile plugin. But after conversion it playing different noise, I am not able to…

u_pendra
- 908
- 1
- 10
- 25
0
votes
3 answers
Say "hello" when Twilio call connected
I have a websocket in python Flask that listens to a twilio call. When the call is started I want to say "hello" here is the code.
if data['event'] == "start":
speakBytes = speaker.speak("Hello") // using micrsoft cognitive…

swarnava112
- 421
- 8
- 19
0
votes
1 answer
u-law compression returns invalid file c++
I'm trying to apply the u-law algorithm to a wav file file.wav, and then create a new file file2.wav.
file.wav has 16 bits/sample, and I want to obtain a file2.wav that has 8 bits/sample.
This is my code:
#define _CRT_SECURE_NO_DEPRECATE
#include…

Mr. Wizard
- 1,093
- 1
- 12
- 19
0
votes
2 answers
MULAW - Audio data is being streamed too slow
I have a problem with speech recognition in streaming mode. My audio source is a VoIP phone protocol (SIP), it allows you to output audio data in a format:
"encoding": "Mulaw",
"sampleRateHertz": 8000
When I send a new portion of data in streaming…

user2403256
- 1
- 3
0
votes
0 answers
Too fast playback mu-law gstreamer1.0
I dumped raw RTP payload in mu-law format into a file and feeded this file into gstreamer like this:
gst-launch-1.0 filesrc location=interlocutor2.raw ! audio/x-mulaw, rate=8000, channels=1 ! mulawdec ! audioconvert ! audioresample !…

Vlad Chernyshov
- 54
- 1
- 6