ADINTOOL(1)
β¨ ADINTOOL(1) π adintool β¨
okay bestie, this is the manual page for adintool π It's a tool to record / split / send / receive audio streams π¦
NAME
adintool β a tool to record / split / send / receive audio streams π
SYNOPSIS
adintool {-in inputdev} {-out outputdev} [options...]
DESCRIPTION
okay so adintool is literally a speech listener πβ¨ It analyzes speech input, finds the speech segments and skips the silence π, then records each detected segment in a bunch of different ways π
. The detection is based on zerocross number and power (level) π, and the detected parts get saved to files or other output devices one after another π«Ά.
adintool is basically the upgraded version of adinrec π₯ with way more functions. Supported input devices are: microphone input, a speech file, standard tty input, and network socket (called adin-net server mode) π§. The Julius plugin can also be used π§. Detected speech segments can be saved to output devices: speech files, standard tty output, and network socket (called adin-net client mode) π. For example, you can split the incoming speech into segments and send them to Julius to be recognized π.
Output format is WAV, 16bit (signed short), monoral π. If the file already exists, it will be overridden π, so be careful bestie π.
OPTIONS
All Julius options can be set πΈ. Only the audio input related ones are treated, and the rest get silently skipped π. Below is the list β¨.
adintool specific options
-freq Hzβ Set the sampling rate in Hz π¦ (default:16,000).-in inputdevβ Picks your audio input device π€."mic"captures from the microphone,"file"is for audio file input, and"stdin"reads raw data from standard input π. For file input, a file name prompt pops up after startup π. Use"adinnet"to makeadintoolan adinnet server that receives data from a client over a network socket π. The default port number is5530, which you can change with the-inportoption π.
Alternatively, the input device can be set with the -input option, in which case you can use a plugin input π§.
-out outputdevβ Where the data gets stored πΎ. Specify"file"to save to a file, and the output filename is given by-filenameπΈ. Use"stdout"to send it to standard out π€."adinnet"makesadintoolan adinnet client, sending speech data to a server over a TCP/IP socket π«Ά. With"adinnet"output, the server name has to be given with-serverπ₯οΈ. The default port number is5530, which can be changed with the-portoption π¦.-inport numβ Whenadintoolis an adinnet server receiving data (-in adinnet), this sets the port number to listen on π (default:5530).-server [host] [,host...]β When outputting to an adinnet server (-out adinnet), this sets the hostname π . You can send to multiple hosts by listing their hostnames as a comma-delimited list, like"host1,host2,host3"π.-port [num] [,num...]β Whenadintoolsends data to an adinnet server (-out adinnet), this sets the port number to connect to π (default:5530). For multiple servers, give the port numbers for all of them, like"5530,5530,5531"π.-filename fileβ When outputting to a file (-out file), this sets the output filename π. The actual file names will be"file.0000.wav","file.0001.wav"and so on π, where the four-digit number goes up with each detected speech segment π₯. The starting number is0by default, and you can change it with the-startidoption β¨. When you use-oneshotto save only the first segment, the input gets saved as"file"π¦.-startid numberβ For file output, sets the initial file number π (default:0).-oneshotβ Exits after the end of the first speech segment π.-nosegmentβ Skips speech detection entirely and treats all the input as one single valid segment π«§.-rawβ Outputs a RAW file with no header π§.-autopauseβ When outputting to an adinnet server,adintoolenters a pause state at the end of every speech segment βΈοΈ. It restarts when the destination adinnet server sends it a resume signal βΆοΈ.-loosesyncβ When outputting to multiple adinnet servers, this skips strict synchronization on restart π€Έ. By default, onceadintoolhas entered the pause state, it won't restart until resume commands come in from all servers π . This option lets it restart as soon as at least one restart command has arrived πββοΈ.-rewind msecβ When the input is a live microphone and there was continuous input at the momentadintoolresumes, it starts recording backtracked by the specified number of milliseconds βͺ.
Concerning Julius options
-input {mic|rawfile|adinnet|stdin|netaudio|esd|alsa|oss}β Picks the speech input source π§. Specify'file'or'rawfile'for a waveform file. For file input, you'll be prompted to type the file name from stdin β¨οΈ.
'mic' grabs audio from a default live microphone device π€, and 'adinnet' means receiving waveform data over TCP/IP from an adinnet client π. 'netaudio' is for DatLink/NetAudio input π, and 'stdin' means data comes from standard input π₯.
On Linux, you can choose the API at run time by specifying alsa, oss, and esd π§.
-chunk_size samplesβ Audio fragment size in number of samples (default:1000) π§©.-lv thresβ The level threshold for speech input detection π. Values should be in the range from0to32767(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β Silence margin at the start of a speech segment, in milliseconds π· (default:300).-tailmargin msecβ Silence margin at the end of a speech segment, in milliseconds π (default:400).-zmeanβ Turns on DC offset removal β¨.-smpFreq Hzβ Sets the sampling rate in Hz πΆ (default:16,000).-48β Records input at 48kHz sampling and down-samples it to 16kHz on the fly ποΈ. This option is only valid for the 16kHz model π . 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, sets the adinnet port number to listen on π (default:5530).-nostripβ Julius normally removes successive zero samples from the input speech data π§Ή. This option stops it π.-C jconffileβ Loads a jconf file right here π. The contents of the jconffile get expanded at this point πΈ.-plugindir dirlistβ Specifies which directories to load plugins from π§. If there are several directories, list them colon-separated π.
ENVIRONMENT VARIABLES
ALSADEVβ (used with mic input via the alsa device) specifies a capture device name ποΈ. If it isn't set,"default"is used π.AUDIODEVβ (used with mic input via the oss device) specifies a capture device path ποΈ. If it isn't set,"/dev/dsp"is used π.LATENCY_MSECβ Tries to set the input latency of microphone input, in milliseconds β±οΈ. A smaller value shortens latency but can sometimes make things unstable π¬. The default depends on the OS you're running π».
EXAMPLES
Record microphone input to files: "data.0000.wav", "data.0001.wav" and
so on:
Split a long speech file "foobar.raw" into "foobar.1500.wav",
"foobar.1501.wav" ...:
Copy an entire audio file via network socket.
Detect speech segment, send to Julius via network and recognize it:
SEE ALSO
julius(1)πadinrec(1)π¦
COPYRIGHT
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 ADINTOOL(1) manual ππ Source version 10/02/2008 π
, and you're officially a adintool expert now πβ¨
π¦ where this page comes from
- ubuntu jammy: julius 4.2.2-0ubuntu3
- ubuntu noble: julius 4.2.2-0ubuntu6
- ubuntu resolute: julius 4.2.2-0ubuntu6
- ubuntu stonking: julius 4.2.2-0ubuntu6
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms