Audio capture and playback for Clojure on the JVM. Powered by javax.sound.sampled
Audio capture and playback for Clojure on the JVM. Powered by javax.sound.sampled
(capture-audio!
callback
&
{:keys [buffer-size max-chunk-bytes interval-ms]
:or {buffer-size 4096 max-chunk-bytes (* 15 1024 1024) interval-ms 1000}})Capture audio from the default microphone in PCM16 format (24000Hz, mono), Base64-encodes chunks, and invokes callback with each chunk. Returns a stop-fn to stop recording.
Capture audio from the default microphone in PCM16 format (24000Hz, mono), Base64-encodes chunks, and invokes callback with each chunk. Returns a stop-fn to stop recording.
(stream-audio! audio-ch)An audio streaming function that plays streamed audio via javax.sound.sampled on a separate thread
An audio streaming function that plays streamed audio via javax.sound.sampled on a separate thread
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |