@@ -332,16 +332,16 @@ async def loop(dog):
332332@click .option ("--voice" , type = click .Choice (VOICES .keys ()), default = "michael" )
333333@click .option ("--alive/--dead" , is_flag = True , default = True )
334334@click .option ("--configure-input/--no-configure-input" , is_flag = True , default = False )
335- @click .option ("--sample-rate" , type = int , default = 44100 )
335+ @click .option ("--input- sample-rate" , type = int , default = 44100 )
336336@click .option ("--output-sample-rate" , type = int , default = 0 )
337337@click .option ("--input-device" , type = str , default = "USB PnP" )
338338@click .option ("--output-device" , type = str , default = "UACDemo" )
339339@click .option ("--echo/--no-echo" , is_flag = True , default = False )
340- def main (voice , alive , configure_input , sample_rate , output_sample_rate , input_device , output_device , echo ):
340+ def main (voice , alive , configure_input , input_sample_rate , output_sample_rate , input_device , output_device , echo ):
341341 if configure_input :
342342 sd .default .device = (input_device , output_device )
343- if sample_rate > 0 :
344- sd .default .samplerate = sample_rate
343+ if input_sample_rate > 0 :
344+ sd .default .samplerate = input_sample_rate
345345 devices = sd .query_devices ()
346346 print ("Number of devices: " , len (devices ))
347347 print ("Devices: " , json .dumps (devices , indent = 2 ))
0 commit comments