Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode (Read 2256 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Find a FFmpeg version that supports ACELP.KELVIN encoding, if you can't find one, create a ACELP.KELVIN encoder. Input should be 8 kHz, mono/stereo, 16-bit PCM WAV and output should be in ACELP.KELVIN WAV.

To make a ACELP.KELVIN encoder: take the decoder sources and modifiy for encoding. Post as a EXE that works with Windows 7 (compressed as a ZIP file) and as source code (also compressed as a ZIP file)

One quote that drives me crazy, because apparently human speech only requires mono, for some reason:

Quote
Take a sample input audio source is encoded in “acelp.kelvin” which is not supported by STT API

To determine how the audio source is encoded, run ffmpeg -i input.wav output will shown the encoding

Stream #0:0: Audio: acelp.kelvin (5[1][0][0] / 0x0135), 8000 Hz, 2 channels, s16p, 17 kb/s

In the bolded paragraph line of text, he's literally talking about a STEREO ACELP.KELVIN file, which you guess, human speech only requires mono, for some reason. What reason? Because mono sounds very good for human speech! Stereo also sounds very good for human speech, but check this out, running MediaInfo on this sample file: "format-0x135-Roligt_samtal.wav" reveals the following:

Code: [Select]
General
Complete name               : E:\Sample files\format-0x135-Roligt_samtal.wav
Format                      : Wave
Format settings             : WaveFormatEx
File size                   : 175 KiB
Duration                    : 2 min 44 s
Overall bit rate            : 8 723 b/s

Audio
Format                      : KELVIN
Codec ID                    : 135
Codec ID/Hint               : Sipro
Duration                    : 2 min 44 s
Bit rate                    : 8 720 b/s
Channel(s)                  : 1 channel
Sampling rate               : 8 000 Hz
Stream size                 : 175 KiB (100%)

- In this file, is MONO. but in the file at the quote is STEREO. Many wishes and wises for coding a ACELP.KELVIN encoder.

MOD edited: paragraph > line of text


Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #2
Yea, the paragraph is referencing from https://cloud.google.com/blog/products/ai-machine-learning/using-ffmpeg-with-google-cloud-speech-to-text but: you can make a ACELP.KELVIN encoder? Input should be 8 kHz, mono/stereo, 16-bit PCM WAV and output should be in ACELP.KELVIN WAV.


MOD edit: remove unnecessary quoted text

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #3
Post as a EXE that works with Windows 7 (compressed as a ZIP file) and as source code (also compressed as a ZIP file)


MOD edit: remove unnecessary quoted text

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #4
... take the decoder sources ...
From FFmpeg, the latest FFmpeg version or a version you will think it should work.

Quote
MOD edit: remove unnecessary quoted text

Thanks for the wise edits!

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #5
There are many views but no replies because this topic doesn't make any sense. The Google page is about converting any random file format to regular PCM WAV that their service can accept.

human speech only requires mono, for some reason. What reason?
Because humans have only one mouth. If you had two mouths you could speak in stereo.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #6
There are many views but no replies because this topic doesn't make any sense. The Google page is about converting any random file format to regular PCM WAV that their service can accept.

human speech only requires mono, for some reason. What reason?
Because humans have only one mouth. If you had two mouths you could speak in stereo.
That's quite funny, but noise and other sound effects captured by the microphone in also to speech: sounds better in stereo than in mono.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #7
The Google page is about converting any random file format to regular PCM WAV that their service can accept.
You meant ACELP.KELVIN - a variant of ACELP.net that still uses the ACELP algorithm?
any random file format to regular PCM WAV that their service can accept.
But I want to do the opposite, let's take a regular 8 kHz, mono/stereo, 16-bit PCM WAV and compress to a ACELP.KELVIN WAV. I want to do that. But no encoder?? Please MAKE THIS NOW!

To make a ACELP.KELVIN encoder: take the decoder sources and modify for encoding. Post as a EXE that works with Windows 7 (compressed as a ZIP file) and as source code (also compressed as a ZIP file)

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #8
To make a ACELP.KELVIN encoder: take the decoder sources and modify for encoding. Post as a EXE that works with Windows 7 (compressed as a ZIP file) and as source code (also compressed as a ZIP file)
This reminds me of a cartoon where a staff scientist had written on the blackboard (between problem and solution) "something magic happens", and the caption was "Jenkins, I think you need to be more explicit in step 2"  :))  :))  :))
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #9
But please code a ACELP.KELVIN encoder. Input should be 8 kHz, mono/stereo, 16-bit PCM WAV and output should be in ACELP.KELVIN WAV. ACELP.KELVIN is a speech codec. Attach a EXE with sources when done!

To make a ACELP.KELVIN encoder: take the ACELP.KELVIN decoder sources from the latest FFmpeg version (or a version it should work) and modify for encoding! POST THESE FILES WHEN DONE! ARE YOU READY FOR PROGRAMMING AND CODING A ACELP.KELVIN ENCODER?

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #10
No reply in 3 days, enough to move this post to the recycle bin or also known as the trashcan.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #11
Wait, do you want US to make YOU a working encoder?
Error 404; signature server not available.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #12
That does seem to be the implication, unless there's a severe loss in translation.

The OP only signed up very recently, and this is his/her only content on the forum.  The most likely scenarios in my mind are:
  • Student or paid assignment they're trying to get out of (and get done for free);
  • Building post reputation for some future spamming.

Take a look at the signature: who (normally) would link to this thread in their sig?
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #13
Wait, do you want US to make YOU a working encoder?
To make a ACELP.KELVIN encoder: take the decoder sources from the latest version of FFmpeg or a version you think it works and modify for encoding. Post as a EXE that works with Windows 7 (compressed as a ZIP file) and as source code (also compressed as a ZIP file). Seriously!

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #14
No reply in 3 days, enough to move this post to the recycle bin or also known as the trashcan.
HAS replied in 3 days, only 2 replies.

  • Building post reputation for some future spamming.
- I won't spam now, and also in the future. I'm just folks and goodness.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #15
To make a ACELP.KELVIN encoder: take the decoder sources from the latest version of FFmpeg or a version you think it works and modify for encoding.
If it's that easy, why don't you do it?

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #16
To make a ACELP.KELVIN encoder: take the decoder sources from the latest version of FFmpeg or a version you think it works and modify for encoding.
If it's that easy, why don't you do it?
Because C is very hard... IS ONE OF THE WORST LANGUAGES ON EARTH!!

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #17
FFmpeg SHOULD BE MADE IN THE SIMPLEST LANGUAGE ON THE EARTH!

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #18
Why on earth would anyone spend even a minute to create an encoder to an ancient, dead, obscure and no doubt poor quality audio codec. I fear the topic starter is somehow thinking the codec is something amazing because it was randomly mentioned on that Google page.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #19
Why on earth would anyone spend even a minute to create an encoder to an ancient, dead, obscure and no doubt poor quality audio codec. I fear the topic starter is somehow thinking the codec is something amazing because it was randomly mentioned on that Google page.
Because FFmpeg doesn't even have a ACELP.KELVIN encoder, check this:
Code: [Select]
 D.AIL. acelp.kelvin         Sipro ACELP.KELVIN
That's why doesn't have a encoder for that format. Also C is very hard. FFmpeg should be made in the simplest language on the earth.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #20
That is not a reason. FFmpeg has useful features. It missing nonsense is not a reason for someone to go and nonsensify it. No one in this world needs encoder for that format. Thankfully if some poor soul happens to have a sample stored in said format, ffmpeg can be used to convert it into something that works.

Am I correct that you have zero need for such encoder and you are just upset that ffmpeg doesn't have it?

Also note that those simplest languages you want ffmpeg to use would also be uselessly slow. And such interpreted languages would render ffmpeg essentially useless as it could no longer do what it does now. And just because the code looks simple doesn't mean the logic you need to understand is any easier.

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #21
Try ffmpeg -codecs and you will see a lot that ffmpeg only decodes. Over a hundred audio codecs have that status, that includes uncompressed formats like
 D.AIL. dsd_lsbf             DSD (Direct Stream Digital), least significant bit first
 D.AIL. dsd_lsbf_planar      DSD (Direct Stream Digital), least significant bit first, planar
 D.AIL. dsd_msbf             DSD (Direct Stream Digital), most significant bit first
 D.AIL. dsd_msbf_planar      DSD (Direct Stream Digital), most significant bit first, planar
 D.AI.S dst                  DST (Direct Stream Transfer)
 D.AI.S pcm_f16le            PCM 16.8 floating point little-endian
 D.AI.S pcm_f24le            PCM 24.0 floating point little-endian
 D.AI.S pcm_lxf              PCM signed 20-bit little-endian planar
 D.AI.S pcm_sga              PCM SGA
(whatever the latter is).

You also find lossless codecs like TAK and Monkey's Audio and WMAL and the grandfather of them all, Shorten - and MPEG-4 ALS, which is even an ISO standard.
And Musepack, Atrac and others.


 

Re: Create a ACELP.KELVIN encoder if you can't find a FFmpeg version that can encode

Reply #23
Closing. No reply in a few days.
You won't answer questions (sensibly or at all), so what do you expect?
It's your privilege to disagree, but that doesn't make you right and me wrong.