Open Source Codec Encodes Voice Into Only 700 Bits Per Second (rowetel.com) 128
Longtime Slashdot reader Bruce Perens writes: David Rowe VK5DGR has been working on ultra-low-bandwidth digital voice codecs for years, and his latest quest has been to come up with a digital codec that would compete well with single-sideband modulation used by ham contesters to score the longest-distance communications using HF radio. A new codec records clear, but not hi-fi, voice in 700 bits per second -- that's 88 bytes per second. Connected to an already-existing Open Source digital modem, it might beat SSB. Obviously there are other uses for recording voice at ultra-low-bandwidth. Many smartphones could record your voice for your entire life using their existing storage. A single IP packet could carry 15 seconds of speech. Ultra-low-bandwidth codecs don't help conventional VoIP, though. The payload size for low-latency voice is only a few bytes, and the packet overhead will be at least 10 times that size.
Re: do what now (Score:3)
Re:do what now (Score:5, Informative)
Re: (Score:2)
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Is it a form of adaption? I couldn't understand the 700C samples on the first few play throughs, but after 5 repetitions they made sense.
Re:do what now (Score:5, Informative)
It's not for recording.
It's for giving us Voice communication to MARS and back. If you have the ability to transmit voice over long distances using lower bandwidth, you can add in luxuries like checksums and redundant data so that when you send it a very long distance it arrive at the extreme distance away where your 10,000 watt transmission is weaker than a dollar store walkie talkie.
Ham radio is where most of the breakthroughs in communication happen. I can see this mode used to allow voice communication with mars astronauts. We already have PSK31 allowing a ham with 2.5 watts of power to transmit text messages around the globe easily.
Re: (Score:1)
May be boring, but it's great for espionage!
More than just low storage (Score:4, Interesting)
Encoding voice more efficiently has implications far exceeding the amount of storage space required to save it. There's a reason why the article is comparing the new codec to single sideband [wikipedia.org]. When transmitting digital data over radio, it pretty much invariably (nowadays) means some sort of spread spectrum transmission. The fewer bits required per second means the less spectrum you are having to spread your signal over, this the more concentrated your signal is. A radio transmitter has a fixed power output, so if you are smearing that power over less band, then you have a stronger signal.
It is a testament to the amateur radio pioneers of the past that an analog radio transmission mode invented over a hundred years ago is, just now, being possibly rivaled in its efficiency.
Re: (Score:2)
It is a testament to the amateur radio pioneers of the past that an analog radio transmission mode invented over a hundred years ago is, just now, being possibly rivaled in its efficiency.
And there is a reason why Single Sideband will still be used for a long time to come.
A weak or noisy SSB signal can still be copied and understood. The digital encodings have a fatal flaw. It is known as the "digital cliff". If it doesn't decode properly, or if you have a weak or noisy signal, you get silence.
So the net effect is a quiet signal of significantly less range. In addition, most digital encoding schemes don't really save any bandwidth.
This encoding appears to try to work around that iss
Re: (Score:2)
More likely the NSA can use this to store everything you say forever.
Re: not great quality (Score:1)
VTT is a trivially solved problem, is it? Especially at low latency on embedded devices?
The words you're looking for are "I'm sorry"
Latency? (Score:2)
Yes, it can! (Score:2)
It m___ cer___ly c_n!
T__s is just th_ thing Telco_ and oth_r _____ prov___rs need to _ed__e usag_ and all__ more users __ lim_ted bandw__th circ__ts.
He__. C_n y__ call m_ bac_ on my house__one?
Re:Yes, it can! (Score:5, Interesting)
Re: Yes, it can! (Score:5, Informative)
Specific to English? (Score:5, Interesting)
I wonder how it performs on tonal languages like Cantonese.
Re: (Score:2)
Or more importantly, atonal languages like Klingon!
Re: (Score:3)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Is this project a response to the earlier controversy about proprietary codecs?
Re:Specific to English? (Score:5, Informative)
SIGSALY (Score:1)
Homer Dudley had a working vocoder pre-WW2, which was used in the encrypted voice system SIGSALY.
From Wiki, this encoded voice into 12 signals, each with 6 levels (call it 2.5 bits) at 25 Hz. That's about 750 bits/s.
Re: (Score:2)
Re: (Score:2)
I wonder how it performs on tonal languages like Cantonese.
I don't see any reason it shouldn't work. It encodes pitch (you really can't avoid that if you're encoding speech, which will include "voiced" sounds that have a fundamental frequency), and some casual reading about how it encodes suggest that it captures more specific information in the lower frequencies than in the higher ones, which also matches how our (logarithmic) perception of frequency works. That being said, the English sample I heard doesn't sound fantastic: think of a phone conversation in which
This issy awe so nudes (Score:3)
Re: (Score:3)
The math seems off (Score:1)
70 years * 365 days (roughly) * 24 * 60 * 60 * 88 bytes/sec / 1024 / 1024 / 1024 = 181GB
Is my math off or are they assuming such people will only have a 15 year life span?
Re: (Score:2)
There are 256GiB MicroSD cards on the market right now. So yes, this is entirely possible.
Re: (Score:1)
Only if that SD card were used EXCLUSIVELY for recording your voice, and it's ACTUALLY 256GB of usable space (capacity is always a lie, filesystems take up space too, etc.), and it doesn't fail over the decades, AND you don't live more than ~98 years, sure.
Re: (Score:2)
Nobody is assuming a 15 year life span.
The question is, why do you assume that people talk nonstop 24 hours per day?
Re: (Score:2)
I got the same as you. 2.59GB/year
Still damn impressive as 250GB m2 SSDs would hold ~ a century of voice.
Now, assuming that you are not talking continuously (say you talk 1/3 of the day; 8 hours of continuous talking; that's a lot) then you're at 60 GB/70Yr and that *is* valid for a high(ish) end smartphone.
Re: (Score:2)
MicroSD capacity should increase faster than the rate data is added to the device.
Re: (Score:3)
This from a guy famous for saying stuff! (Score:2)
> [I] haven't said many words at all.
And this is from a guy who is famous largely for saying stuff!* Well known for talking about Morse code, talking about free software and open source, talking about Debian's principles, talking at conferences, probably talking to Congress ... and even you don't talk more than a few hours per week.
* and also of course for DOING a lot of things, including doing things like founding organizations - which requires a lot of talking.
Actually, that got me curious, what do y
Darn typos making my post unreadable (Score:2)
A couple of typos made that hard to read. Let me try again:
What do you think first / most really got your name out there?
Why did you start getting so much press attention, etc, compared to other people who also did important work?
Not that you aren't worth listening to. I'm not saying you don't "deserve" the attention or whatever. I'd just like to know your thoughts on how and why someone like yourself becomes a bit of a celebrity in the field.
Re: (Score:2)
Thanks (Score:2)
Thanks for that. Sounds like I have a lot of work to do to become nerd famous. ;)
I just checked out your blog and found the bit about switching power supplies interesting. I knew about switching *regulators*, but didn't realize common power supplies could actually run on DC. I'll have to check your blog more often.
Re: (Score:3)
Re: (Score:1)
As a no-code general, thank you again for all of your hard work on getting that pushed through. I briefly ran into you in Dayton back in 2012 when you were handing out codec2 flyers. I sure wish there was further uptake of open codecs in the amateur radio world :(
Re: (Score:2)
Re: (Score:1)
People talk in their sleep, you know.
Re: (Score:2)
budget cuts for NSA? (Score:1)
How does it sound? (Score:4, Interesting)
Re: (Score:1)
It's right there in TFA (samples that is). The answer appears to vary from muffled but understandable if you listen closely to bad-phone-connection, breaking up level of unintelligability. It's impressive but not really something you'd want to listen to if there was an alternative.
Re: (Score:2)
good point. I suppose the low limit would be doing that while compressing the text stream via a pre-shared library and assuming optimum (no ECC required) communication channel?
Re: (Score:3)
Bandwidth? (Score:1)
Good old POTS had 3k of audio bandwidth. What is the bandwidth of this CODEC? It's hard to be impressed without knowing the details.
Re:Bandwidth? (Score:4, Interesting)
To compute the channel capacity, you need to know the channel's signal-to-noise ratio as well as its bandwidth.
The Shannon channel capacity [wikipedia.org] formula is: C = B * log_2(1 + SNR) where C is the channel's capacity in bits/second, B is its bandwidth in hertz, log_2 is the base-2 logarithm and SNR is the channel's signal-to-noise ratio.
If we assume an SNR of 48 dB for a reasonable POTS line, its capacity would be C = 3 kHz * log_2(1 + 48 dB) ~= 3000 * log_2(63097) which is almost 48,000 bits per second.
This is a theoretical limit that realizable systems can only approach, but never equal or exceed. A practical system would also use extra bits for forward error correction purposes; I doubt that this codec deals gracefully with bit errors.
For back-of-the-envelope purposes, assume you could use this codec to send a single voice signal in 700 Hz of bandwidth on a channel with low SNR, or you could send 60 voice signals over a regular POTS line.
Re: (Score:2)
Re: (Score:2)
If that's true, there's more room for compression!
Re: (Score:2)
Re: (Score:2)
POTS is traditionally converted to a 64 kbit/s digital signal, e.g. in ISDN, but also in the digital back-end used for the POTS network these days.
Close (Score:4, Funny)
A new codec records clear, but not hi-fi, voice in 700 bits per second -- that's 88 bytes per second.
It's 87.5 bytes/s and it's that odd 1/2 byte that keeps it from being too fuzzy sounding for hi-fi.
Re: (Score:2)
Re:Close (Score:5, Informative)
Lots of people ask about this. If we did pure speech-to-text and text-to-speech, it would take about half the bandwidth but everybody would have the same synthesized voice. Once you start trying to add parameters to the synthesized voice such as pitch, speed, and tonality, those take as much bandwidth as we are using for the entire codec, because they are essentially the same parameters.
Re: (Score:2)
Lots of people ask about this. If we did pure speech-to-text and text-to-speech, it would take about half the bandwidth but everybody would have the same synthesized voice. Once you start trying to add parameters to the synthesized voice such as pitch, speed, and tonality, those take as much bandwidth as we are using for the entire codec, because they are essentially the same parameters.
Doesn't Motorola have a low bandwidth FM mode using phonemes? I've listened to a few radios using something like that, and they are pretty unpleasant to use.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
It sounds strange in our digital world based on whole bytes, but those odd half-byte encode naturally onto vinyl and add warmth and feeling to the intonation.
"clear" is an exaggeration (Score:4, Informative)
They're skirting the bottom edge of comprehensibility, the voice in the samples is by no means "clear". You have to focus very closely to understand that is being said much of the time, and even then, repeated listenings are sometimes necessary.
Re: (Score:2)
Though thats often true of amateur radio generally.
Re: (Score:3)
You're describing all of the tech support calls I've had to make in the past few years.
Re:"clear" is an exaggeration (Score:4, Interesting)
In other words, it's being efficient.
The brain has a very powerful voice and audio decoder. (In fact, the brain's wetware is so powerful to compensate for relatively poor sensors - but coupled with the power of the brain, they become much more powerful detection devices. The downside to the economy in hardware with powerful software combination is artifacting - though we usually call those things illusions).
So the codec basically saves transmission bytes by making the brain do a lot of the signal recovery work.
Of course, in Amateur Radio, SSB can be really bad and you have to do a lot of deciphering anyhow.
Re: (Score:2)
Re: (Score:2)
I am sure the tech is very useful, and being able to transmit understandable voice (even if it takes some concentration to understand it) in a very low number of bits is cool. I just thought the slashdot summary exaggerated a little bit.
Re: "clear" is an exaggeration (Score:2)
Re: (Score:2)
All the hams I spoke with this evening are wondering why you find it difficult to copy. No kidding. We seem to have trained our ears on the analog radios over marginal paths.
It is a training thing. I am pretty deaf, with two separate tinnitus tones, what does get to my brain sounds like a cracked speaker, and tremendous loss above 2 KHz, yet I am able to hear a lot of transmissions that inexperienced people with good hearing cannot. This is proven time and again when contesting with a noob helper.
The issue I find with low bandwidth signals is that they cause fatigue over time. It's like when I wear a hearing aid. After 20 minutes, I'm ready to scream - This is likely because
drip to amazon/apple/google (Score:2)
" A single IP packet could carry 15 seconds of speec"
great
sequential access vs random access (Score:2)
A stream of sounds is difficult to parse. Converting it via various codecs won't change that or make it more useful. Converting the analog wave sounds into meaningful digital data (in the form of words as text, musical notation, specific fart parameters, a database of whale or bird calls, etc) is more helpful and efficient. Meaning can be extracted and/or analyzed. As someone else suggests, those can be converted back to a semblance of the original sequential stream of sounds (but why?).
If you are communica
Re: (Score:2)
FM mode? (Score:2)
Do we finally have a 2400b mode? Would love to do digital but when existing FM transceivers. Due to HOA I can't (and yes have tried) do HF reliably.
Re: (Score:2)
I have been experimenting with 2400b on UHF for almost a year now. Especially since it allowes mixed voice and data.
Codec source code (Score:4, Informative)
Here's a link to the current source code, as it wasn't straight forward to find: https://svn.code.sf.net/p/free... [sf.net]
Licensed under GNU LGPL v2.1.
Re:Codec source code (Score:4, Informative)
The github mirror [github.com] has a nicer interface.
17 U.S. Intelligence Agencies (Score:4, Interesting)
Just to show I'm not all gloom-and-doom: I'd think NASA, and private spaceflight companies like SpaceX, would be interested, since a low datarate for voice communications would be great, I'd think, for interplanetary distances. With higher datarates available you could have multiple conversations happening simultaneously.
Re: (Score:2)
since a low datarate for voice communications would be great, I'd think, for interplanetary distances
If you're looking at waiting minutes for any reply, you might as well just use text. If you're on another planet, and incapacitated in such a way that you can't type, and you need help from home, you're probably pretty much boned already.
I certainly wouldn't want to rely on this codec to get any emergency information across clearly.
Re: (Score:2)
There are commercial codecs that get to slightly lower data rates, which the government presently uses.
I once had to ask the Pakistani military to not use the mailing list to ask questions, as I didn't want our ham radio project to get in ITAR trouble. Of course they can still use the code, it's Open Source. But they have to get help elsewhere.
Re: (Score:1)
Clear? No (Score:3)
Those samples are anything but "clear." It's still impressive, given the compression ratio, but there's no need to go overboard. You wouldn't want to have to rely on your understanding of one of these samples
Codec 2 700C and Google's RAISR (Score:1)
I wonder if Google could pair Codec 2 700c and RAISR (Rapid and Accurate Super Image Resolution) for YouTube videos that use even lower bandwidth than the 144p that exist already. Or, they could use the same technology to reduce the bandwidth necessary to stream 1080p/4k/8k videos and further embarrass the data capping ISPs.
Pushing ever further into unintelligibility (Score:3)
I guess it's impressive to get anything other than straight noise out of less than 1kbps. But I've wondered why Rowe hasn't focused more on quality at more moderate (e.g. 2-3kbps) bitrates rather than continuing to seek ways to trade away some quality for an ever lower bitrate. It's been a couple years since I tried it out and came to that conclusion; this looks like that trend has continued.
I couldn't get my encoded samples to sound nearly as good as the samples posted on the codec2 site. And it seemed like the second-lowest bitrate at the time (1400?) sounded essentially just as good as the highest (3200), which meant it wasn't making effective use of the additional bits. The quality jump between its highest mode and the lowest Opus mode (at 6kbps) was huge . (EVS would be a big jump over that.)
From what I understand, codec2's most prominent competition operates at 2.4kbps and up and sounds noticeably better at those rates than codec2 does.
Another thought (Score:2)
The jump in intelligibility and voice quality going from 4kHz narrowband to 6kHz mediumband is big- probably bigger than going from mediumband to 20kHz fullband. The distinguishing features of many consonants are between 3.5 and 6 kHz.
Finding some way to take advantage of information beyond narrowband - even if not trying to encode much of it - could be a distinct advantage for a low bitrate codec over existing competition.
Weird summary (Score:2)
What a weird summary:
The new codec isn't "competing with single-sideband modulation".
Normal SSB is unprocessed speech. So the codec is simply competing with natural speech.
The claim that SSB "is used by ham contesters to score the longest-distance communications using HF radio" is just plain wacky. So they use natural speech too talk to each other???
implementations on known platforms? (Score:1)
This call for an implementation on those ESP8266 and similar modules: ADC and DAC (or PWM if absent) to interface with headset and that codec to send voice over IP sparing most possible bandwidth for other data and/or degraded link conditions.
Also an Arduino or other cheap platform and a couple serial rf modules could be an interesting way to tinker with the protocol and explore applications.
6502 (Score:1)