Skip to content

Instantly share code, notes, and snippets.

@wgaylord
Created March 1, 2019 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wgaylord/1db22379c82aa29b99462dee0293282f to your computer and use it in GitHub Desktop.
Save wgaylord/1db22379c82aa29b99462dee0293282f to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "Bot.py", line 26, in SendAudio
mumble.sound_output.add_sound(in_data)
File "/usr/local/lib/python3.5/dist-packages/pymumble_py3/soundoutput.py", line 158, in add_sound
samples = int(self.encoder_framesize * PYMUMBLE_SAMPLERATE * 2) # number of samples in an encoder frame
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
Relevent Lines.
mumble = Mumble("192.168.1.215","FT736R",certfile="FT736R.pem",keyfile="FT736R-keys.pem")
mumble.callbacks.set_callback(constants.PYMUMBLE_CLBK_SOUNDRECEIVED,ProcessAudioToRadio)
mumble.callbacks.set_callback("text_received", ProcessCommand)
mumble.set_application_string("HamRadioLink")
mumble.start()
mumble.is_ready()
mumble.set_receive_sound(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment