tvoip
1.0.0
speaker模塊的自定義版本,該版本允許指定輸出設備。 (請參閱此處) 在Linux上應該可以正常工作。至少對我來說確實如此。
TVOIP是一個簡單的基於終端的P2P VoIP應用程序。與Skype或類似應用不同:
Usage: node index.js [options]
Options:
-V, --version output the version number
-c, --connect <host:port> Connect to a host, (Supports IP:port and hostname:port.)
-l, --listen <port> Automatically accept connections on this port.
-i, --input [device-name] Input device, (Leave empty to use the default recording device.)
-o, --output [device-name] Output device, (Leave empty to use the default playback device.)
-a, --mic-channels <count> Number of channels 1=mono; 2=stereo (Leave empty to use 1.)
-b, --speaker-channels <count> Number of channels 1=mono; 2=stereo (Leave empty to use 2.)
-d, --debug <bool> true to enable debug, false to disable debug. (Leave empty to not use debug.)
-g, --log <file> Log to file
-h, --help output usage information
Examples:
node index.js --listen 3333 --input hw:0,0 --output hw:1,1
node index.js --connect 192.168.1.101:3333 --input hw:0,0 --output hw:1,1
(輸入/輸出設備的格式來自ALSA。請參閱arecord和aplay以及此stackoverflow問題。)
您將需要ALSA。
alsa-utils在類似debian的系統上( sudo apt-apt-get install install install install install libasound2-dev alsa-base sudo apt-get install libasound2-dev alsa-base alsa-utils )。alsa-lib-devel alsa-utils和alsa-lib ( sudo dnf install alsa-lib-devel alsa-utils alsa-lib )您將需要Sox。請去這裡:Sox
您將需要Sox。請去這裡:Sox
git clone --recursive https://github.com/T-vK/tvoip.gitcd tvoipnpm i請在Github上在此處打開一個問題。