-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readme: move information on using sox into it's own file
Also minor cleanup to ydotool readme.
- Loading branch information
1 parent
67eec6c
commit 5f3b3e9
Showing
4 changed files
with
63 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
################################# | ||
Using ``sox`` with nerd-dictation | ||
################################# | ||
|
||
This guide explains how to configure ``sox`` for recording audio with ``nerd-dictation``. | ||
|
||
|
||
When should I use ``sox``? | ||
========================== | ||
|
||
You may wish to configure ``sox`` if you are using a system without pulse-audio support (such as FreeBSD). | ||
|
||
|
||
Configuring ``sox`` | ||
=================== | ||
|
||
Set environment variable ``AUDIODEV`` to use a specific input device. | ||
Other sox options can be set (such as gain) by setting environment variable ``SOX_OPTS``. | ||
|
||
You can test various devices by | ||
|
||
.. code-block:: sh | ||
# List audio devices. | ||
arecord -l || cat /proc/asound/cards || cat /dev/sndstat | ||
# Example, use card 2, subdevice 0. | ||
# Record 10 seconds and playback to default output. | ||
AUDIODEV='hw:2,0' sox -d --buffer 1000 -r 16000 -b 16 -e signed-integer -c 1 -t wav -L test.wav trim 0 10 | ||
sox test.wav -d | ||
Running nerd dictation with ``sox`` | ||
=================================== | ||
|
||
To run ``nerd-dictation`` with ``sox``, use the ``--input`` argument. | ||
|
||
.. code-block:: sh | ||
nerd-dictation begin --input=SOX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters