Top
Best
New

Posted by petewarden 6 days ago

Speech Recognition and TTS in less than 500kb(github.com)
559 points | 84 commentspage 2
1saadcodes 1 day ago|
I've a local dictation workflow for coding, and one thing I've learned is that transcription accuracy is only half or even less than half the problem now. The other half is latency. Once the delay gets low enough that you stop noticing it, voice input starts feeling much more natural. It'll be interesting to see where this lands compared to Whisper-based setups for continuous dictation
userbinator 2 days ago||
This looks like an extreme point for AI-based TTS, as formant/tract modeling synths tend to be more accurate if you want TTS in a tiny amount of compute, but sound distinctly robotic.

TTS (neural diphone synth @ 16 kHz) ~1.8 MiB voice pack

This is in the realm of Microsoft Sam.

HarHarVeryFunny 2 days ago||
Presumably it's not, but the TTS voice in the video sounds to me more like formant synthesis than diphone - it reminds me of my DECtalk.

The project credits does mention espeak (which is formant based) as well as various other TTS projects, although it sounds like they are only using the pronunciation part of espeak, not the voice synthesis.

https://github.com/moonshine-ai/moonshine#acknowledgements

Joel_Mckay 1 day ago||
It certainly sounds similar, but seems more nimble with phonetic pronunciation in the demo.

Having it run on a pico would be pretty impressive =3

http://cmuflite.org/

https://github.com/festvox/flite

HarHarVeryFunny 1 day ago||
> Having it run on a pico would be pretty impressive

Yes, although relative to the DECTalk DTC01, a Pi Pico is a beast !

Pico : dual core ARM @ 133 MHz, 2MB flash, 264K RAM

DECTalk: 68000 @ 10 MHz + TMS 32010 @ 20 MHz (5 MIPS), 256K ROM, 64K RAM

stanko 1 day ago||
This is really impressive.

If I get time, I would like to try compiling it to WASM. This would allow me to swap my robot poet’s native browser voice synthesis for it. Not sure if it is worth it, but it will be fun to play around with.

Edit: typo

[0] https://muffinman.io/bard/

dwa3592 2 days ago||
this is good to see. i also trained a stt under 500kb for sub dollar chips. it had about 20 words that it could understand(like start, stop, left, right, go, up etc) and then the spell mode where you could say the word spell and then say the individual english alphabets and close with spell. it was super fun to work on. these tend to be extremely unstable though, like confusion between p and t (at least for my accent). will have to try this one now.
schoen 2 days ago||
Could you get people to use the NATO phonetic alphabet for the spelling part? I suppose a challenge is that many people don't know the whole thing, even if they're aware it exists.
jodrellblank 1 day ago||
NATO phonetic is to be understandable over a noisy radio channel, if you want just distinct sounds then Talon Voice users settled on shorter ones easier to use all the time:

    air a
    bat b
    cap c
    drum d
    each e
    fine f
    gust g
    harp h
    sit i
    jury j
    crunch k
    look l
    made m
    near n
    odd o
    pit p
    quench q
    red r
    sun s
    trap t
    urge u
    vest v
    whale w
    plex x
    yank y
    zip z
close2 1 day ago|||
Interesting, that some words don't start with the letter they represent.
otikik 1 day ago|||
“Plex” ?
NooneAtAll3 2 days ago|||
I remember someone training smart kettle to use its speaker as microphone
laidoffamazon 2 days ago||
IIRC the Alexa enabled voice remotes also used a similarly small model though perhaps not this small
stfurkan 2 days ago||
It looks great, thank you! I'll see if I can use it for my in browser AI assistant project's ( https://aidekin.com ) voice part. It's currently using Nemotron-3.5-ASR and supertonic-3 but overall it requires 1.2gb download.
jjcm 2 days ago||
The voice activity detection alone here is compelling - very useful for doing things like highlighting a speaker who's transmitting in realtime. At that rate the impact on perf will be so minimal that you could easily run it in the browser across devices.
walrus01 2 days ago||
Given the tiny size of this, I wonder about possible future integration with esphome compatible hardware

https://esphome.io/

KennyBlanken 2 days ago|
I suppose, but for home automation, esps are best for getting the audio to something more powerful. If this lets a raspberry pi do voice recognition really fast, that alone is worth it.
1vuio0pswjnm7 2 days ago||
Compare

https://github.com/ggml-org/whisper.cpp/

Kyuren 1 day ago||
This makes me want to have a server room with 5 of these around my house and control everything that house in LabRats
nserrino 2 days ago|
Voice is one of the most latency-sensitive modalities in AI. Moonshine is doing awesome stuff
More comments...