This repository was archived by the owner on Oct 19, 2023. It is now read-only.
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
debug_config availability in google-assistant-grpc python library #288
Open
Description
I get this error when trying to use the debug_config property on AssistConfig.
File "/opt/virtual-device/lib/google_assistant.py", line 80, in assist
for resp in assist_responses_generator:
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 348, in next
return self._next()
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 328, in _next
raise self
_Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "Exception iterating requests!"
debug_error_string = "None"
>
Here's the code where I try to set it up
from google.assistant.embedded.v1alpha2.embedded_assistant_pb2 import *
from google.assistant.embedded.v1alpha2.embedded_assistant_pb2_grpc import *
def assist_audio_requests_generator(self, message, language_code, voice_id,
new_conversation):
yield AssistRequest(
config=AssistConfig(
audio_in_config=AudioInConfig(
encoding='LINEAR16', sample_rate_hertz=16000),
screen_out_config=ScreenOutConfig(
screen_mode='OFF'), #or PLAYING
device_config=DeviceConfig(
device_id=self.user.user_id,
device_model_id="my_device_model_id"),
audio_out_config=AudioOutConfig(
encoding='LINEAR16',
sample_rate_hertz=16000,
),
dialog_state_in=DialogStateIn(
language_code=language_code,
is_new_conversation=new_conversation),
debug_config=DebugConfig(
return_debug_info=True
)
))
It works correctly if I remove the debug_config property. Is it not available in version 0.2.0 of the python library? I've tried both with that version as well as 0.2.1.dev1 without success. If so, is there a planned release of the python library coming soon?