

Let's build a voice journal in Rust | Ep. 1: audio I/O, SQlite, CLI args
source link: https://www.youtube.com/watch?v=ZweInbMBsa4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

924 subscribers
In this series, I'm going to build Oxygen, a voice journal and audio analysis toolkit for people who want to change the way their voice comes across. In the first episode, we're making a CLI clone of the "Voice Memos" app on Apple platforms — it lets you record and play back audio clips. In the next few videos, I'll talk about audio compression/encoding/decoding and make our CLI app a little more fully featured. Later on, I will also be building a UI and diving into audio processing and analysis.
Today's code: https://github.com/emilyskidsister/ox...
Setup: I use neovim with coc.nvim and coc-rust-analyzer, which turn neovim into an IDE. The theme is fairyfloss.vim, based on Sailor Mercury's theme. My full setup is available at https://github.com/emilyskidsister/do.... Other tools shown in this video are alacritty, tmux, and fish.
0:00 cargo init 3:50 clap: command line argument parser 11:28 cpal: recording 30:49 cpal: playback 39:38 dasp: resampling 47:50 rusqlite: why a database? 53:20 rusqlite: schema 1:02:18 rusqlite: saving 1:11:03 rusqlite: loading & deleting 1:29:33 channels: ctrl+c and playback end
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK