Fix audio.microphone
This commit is contained in:
parent
853d590d97
commit
70227d0eff
@ -37,7 +37,7 @@ func NewMicrophone() (*microphone, error) {
|
||||
func (m *microphone) Start() error {
|
||||
m.command = exec.Command("ffmpeg", "-re",
|
||||
"-f", m.Format,
|
||||
"-i", m.Device,
|
||||
"-i", fmt.Sprintf(":%s", m.Device),
|
||||
"-f", m.Encoding.Codec,
|
||||
"-ar", fmt.Sprintf("%d", m.Encoding.Bitrate),
|
||||
"-ac", fmt.Sprintf("%d", m.Encoding.Channels),
|
||||
|
Loading…
Reference in New Issue
Block a user