Traceback (most recent call last):


 "microphone_recognition.py", line 38, in <module>

print("Google Cloud Speech thinks you said " + r.recognize_google_cloud(audio, credentials_json=GOOGLE_CLOUD_SPEECH_CREDENTIALS))


 "/Users/Me/speech_recognition/speech_recognition/__init__.py", line 904, in recognize_google_cloud

with PortableNamedTemporary
("w") as f:


 "/Users/Me/speech_recognition/speech_recognition/__init__.py", line 1213, in __enter__

self._file = open(file_descriptor, self.mode)
TypeError: coercing to Unicode: need string or buffer, int found

Traceback (most recent call last):


 "doit-0.32.0/lib/python3.7/site-packages/doit/doit_cmd.py", line 190, in run

return command.parse_execute(args)


 "doit-0.32.0/lib/python3.7/site-packages/doit/cmd_base.py", line 150, in parse_execute

return self.execute(params, args)


 "doit-0.32.0/lib/python3.7/site-packages/doit/cmd_base.py", line 601, in execute

return self._execute(**exec_params)


 "doit-0.32.0/lib/python3.7/site-packages/doit/cmd_run.py", line 264, in _execute

return runner.run_all(self.control.task_dispatcher())


 "doit-0.32.0/lib/python3.7/site-packages/doit/runner.py", line 256, in run_all

self.run_tasks(task_dispatcher)


 "doit-0.32.0/lib/python3.7/site-packages/doit/runner.py", line 219, in run_tasks

if not self.select_task(node, task_dispatcher.tasks):


 "doit-0.32.0/lib/python3.7/site-packages/doit/runner.py", line 131, in select_task

res = self.dep_manager.get_status(task, tasks_dict)


 "doit-0.32.0/lib/python3.7/site-packages/doit/dependency.py", line 630, in get_status

uptodate_result = utd(*args, **utd_kwargs)


 "doit-0.32.0/lib/python3.7/site-packages/doit/tools.py", line 74, in __call__

self.config_digest = self._calc_digest()


 "doit-0.32.0/lib/python3.7/site-packages/doit/tools.py", line 62, in _calc_digest

data = json.dumps(self.config, sort_keys=True, cls=self.encoder)


 "python3-3.7.6/lib/python3.7/json/__init__.py", line 238, in dumps

**kw).encode(obj)


 "python3-3.7.6/lib/python3.7/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "python3-3.7.6/lib/python3.7/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "python3-3.7.6/lib/python3.7/json/encoder.py", line 179, in default

raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type PosixPath is not JSON serializable
