ADINREC(1)

✨ ADINREC(1) β€” the audio recorder bestie πŸŽ€

okay so adinrec is literally the manual name you need to know, bestie πŸ¦‹ it's the tool that opens an audio stream, listens for an utterance, and saves it to a file. no cap, it's so iconic πŸ’…


🎀 NAME

adinrec β€” record audio device and save one utterance to a file 🌸


πŸ’– SYNOPSIS

adinrec [options...] {filename}

🧚 DESCRIPTION

okay so adinrec opens an audio stream and detects when you start talking (an utterance input) 🎀 then it stores that to whatever file you name ✨ the detection is done by level and zero-cross thresholds, which is giving very scientific main character energy πŸ”₯

the default input device is the microphone πŸŽ€ but you can switch to other audio input sources, including the Julius A/D-in plugin, by using the -input option πŸ’œ

the audio format is 16 bit, 1 channel, in Microsoft WAV format 🌈 if the filename you give already exists, it gets overridden so be careful bestie πŸ’€

if filename is -, the captured data gets streamed into standard out with no header (raw format) 🫢


🌸 OPTIONS

adinrec uses JuliusLib and adopts Julius options πŸ’… here's the full list of valid ones, slay πŸ‘‘

✨ adinrec specific options

  • -freq Hz, sets the sampling rate in Hz πŸ“ (default: 16,000)
  • -raw, outputs in raw file format πŸ¦‹

πŸŽ€ JuliusLib options

  • -input {mic|rawfile|adinnet|stdin|netaudio|esd|alsa|oss}, picks your speech input source 🎀 specify file or rawfile for a waveform file, and on file input you'll get prompted to type the file name from stdin 🫢

mic grabs audio from a default live microphone device πŸŽ™οΈ adinnet receives waveform data over tcpip from an adinnet client 🌐 netaudio is from DatLink/NetAudio input ✨ and stdin means data comes in from standard input πŸ“₯

on Linux you can choose the API at run time by specifying alsa, oss and esd 🐧

  • -chunk_size samples, the audio fragment size in number of samples 🧩 (default: 1000)
  • -lv thres, the level threshold for speech input detection πŸ“Š values should be in the range from 0 to 32767 πŸ’« (default: 2000)
  • -zc thres, the zero crossing threshold per second 🌊 only input that goes over the level threshold (-lv) gets counted πŸ”’ (default: 60)
  • -headmargin msec, the silence margin at the start of a speech segment in milliseconds πŸ™ˆ (default: 300)
  • -tailmargin msec, the silence margin at the end of a speech segment in milliseconds 🫧 (default: 400)
  • -zmean, enables DC offset removal 🧼
  • -smpFreq Hz, sets the sampling rate in Hz πŸ“ (default: 16,000)
  • -48, records input with 48kHz sampling and down-samples it to 16kHz on-the-fly ⚑ this option is valid for the 16kHz model only 🎯 the down-sampling routine was ported from sptk. (Rev. 4.0) πŸ“š
  • -NA devicename, the host name for DatLink server input (-input netaudio) πŸ›°οΈ
  • -adport port_number, with -input adinnet, specifies the adinnet port number to listen on πŸ‘‚ (default: 5530)
  • -nostrip, Julius removes successive zero samples in input speech data by default πŸ™…β€β™€οΈ this option stops it πŸ›‘
  • -C jconffile, loads a jconf file right here πŸ“Ž the content of the jconffile gets expanded at this point 🧠
  • -plugindir dirlist, specifies which directories to load plugins from πŸ§šβ€β™€οΈ if several directories exist, list them as a colon-separated list 🌈

🌍 ENVIRONMENT VARIABLES

  • ALSADEV, the device name string for ALSA 🎧 (default: "default")
  • AUDIODEV, the device name string for OSS πŸ”Š (default: "/dev/dsp")
  • LATENCY_MSEC, the input latency of microphone input in milliseconds ⏱️ a smaller value shortens latency but sometimes makes the process unstable 😭 the default value depends on the running OS πŸ’»

πŸ‘― SEE ALSO

  • julius ( 1 ) ,
  • adintool ( 1 )

Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan πŸ‡―πŸ‡΅

Copyright (c) 1991-2008 Kawahara Lab., Kyoto University πŸŽ“

Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology 🏫

Copyright (c) 2005-2008 Julius project team, Nagoya Institute of Technology 🌸


βš–οΈ LICENSE

The same as Julius. 🫢


bestie that's the whole thing, go record something iconic πŸŽ€πŸ’– this page was last updated 10/02/2008 and it's been slaying ever since πŸ’…βœ¨

πŸ“¦ where this page comes from