Windows10:コマンドラインから録音する方法(SoX)
コマンドラインから録音したかった
- 引数でファイル名を指定したかった
- wav形式で保存したかった
- よくわからんVectorアプリは入れたくなかった(偏見)
SoX(Sound eXchange)をインストールする
- 公式サイトからダウンロード
- https://sourceforge.net/projects/sox/
- インストール後、環境変数にPath設定
結論
録音開始
- 以下のコマンドで録音できた。
sox -t waveaudio default -b 16 -c 1 -e signed-integer -r 16000 --endian little -t wav - > output.wav
-t ファイルの形式(wav | mp3 | row 等)
-b 量子化ビット数 ( 8 | 16 )
-c チャネル数 (1 | 2)
-e 標本符号化(signed-integer | unsigned-integer)
-r 標本化周波数 (8000 | 16000 | 48000 等)
-- endian エンディアン (little | big )
- 標準出力
録音終了
-
Ctrl+C で録音が終了する
余談
- https://sourceforge.net/projects/sox/
- インストール後、環境変数にPath設定
sox -t waveaudio default -b 16 -c 1 -e signed-integer -r 16000 --endian little -t wav - > output.wav
-t ファイルの形式(wav | mp3 | row 等)
-b 量子化ビット数 ( 8 | 16 )
-c チャネル数 (1 | 2)
-e 標本符号化(signed-integer | unsigned-integer)
-r 標本化周波数 (8000 | 16000 | 48000 等)
-- endian エンディアン (little | big )
- 標準出力
Windows10標準のWindowsアプリ版ボイスレコーダーは、コマンドラインから次のコマンドで起動することができる。
explorer.exe shell:appsFolder\Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe!App
Author And Source
この問題について(Windows10:コマンドラインから録音する方法(SoX)), 我々は、より多くの情報をここで見つけました https://qiita.com/ytayta/items/63353591632b5e97b9f1著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .