shivasiddharth / GassistPi

Google Assistant for Single Board Computers
Other
1.02k stars 303 forks source link

OSError: [Errno -9997] Invalid sample rate and headless start problem #1066

Closed Aaryanjadhav11 closed 3 years ago

Aaryanjadhav11 commented 3 years ago

IMPORTANT NOTICE
If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

Which branch of GassistPi are you using ?

Master branch

Board and OS details:

Open a terminal and run

cat /proc/cpuinfo  
cat /etc/os-release  
Paste your Board and OS details here.   

processor   : 0
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 51.20
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 1
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 51.20
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 2
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 51.20
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 3
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 51.20
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

Hardware    : BCM2835
Revision    : a22082
Serial      : 000000005c6bb4a5
Model       : Raspberry Pi 3 Model B Rev 1.2

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster

### Describe the bug:

It gives error when i tried to run assistant manually [OSError: [Errno -9997] Invalid sample rate]


### Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues)?
Yes

### 2. Is the issue related to assistant installation ?
No

### If answer to question 2 is Yes, then attach the contents of terminal as a file or paste it below.

### If answer to question 2 is No, then proceed further.
### 3. Does the assistant service start normally?
No

### 4. Is the assistant service restarting automatically?
No

### If answer to question 4 is Yes, then paste the contents of the terminal below.

### If answer to question 4 is No, then proceed further.
### Manually start the assistant. For guidelines to start the assistant manually refer [this](https://github.com/shivasiddharth/GassistPi#manually-start-the-assistant)

### Paste the command below, that crashed the assistant

/home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --device_model_id 'raspi1-271118-raspi1-n4j65l' --project_id 'raspi1-271118'


### Paste the contents of the terminal below

/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3', /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=121, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. fields=[], /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=381, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=430, /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. google_dot_protobuf_dot_descriptorpb2.DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. dependencies=[google_dot_protobuf_dot_anypb2.DESCRIPTOR], /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=144, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:48: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. google_dot_rpc_dot_status__pb2.DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:70: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:97: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:115: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:133: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:151: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:169: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:185: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. fields=[], /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:189: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=373, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:216: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:228: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=410, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:255: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:273: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:291: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:309: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:321: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=504, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:348: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:366: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:378: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=606, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:405: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:417: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=646, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:444: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:456: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=686, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:483: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:501: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. file=DESCRIPTOR, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:513: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=749, /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:640: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_options=b"\202\323\344\223\002\027\022\025/v1/{name=operations}", /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:649: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_options=b"\202\323\344\223\002\032\022\030/v1/{name=operations/}", /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:658: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_options=b"\202\323\344\223\002\032\030/v1/{name=operations/}", /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/}:cancel:\001', /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function ServiceDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/}:cancel:\001', /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:36: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_pb=b"\n\x15google/rpc/code.proto\x12\ngoogle.rpc\xb7\x02\n\x04\x43ode\x12\x06\n\x02OK\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e\x12\r\n\tDATA_LOSS\x10\x0f\x42X\n\x0e\x63om.google.rpcB\tCodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xa2\x02\x03RPCb\x06proto3", /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:46: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="OK", index=0, number=0, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="CANCELLED", index=1, number=1, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:52: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="UNKNOWN", index=2, number=2, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:59: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None, /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:66: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None, /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="NOT_FOUND", index=5, number=5, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:72: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="ALREADY_EXISTS", index=6, number=6, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:79: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None, /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:86: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None, /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:93: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None, /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None, /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:103: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="ABORTED", index=11, number=10, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:106: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="OUT_OF_RANGE", index=12, number=11, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:113: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None, /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:116: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="INTERNAL", index=14, number=13, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:119: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="UNAVAILABLE", index=15, number=14, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:122: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. name="DATA_LOSS", index=16, number=15, serialized_options=None, type=None /home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:128: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=349, /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:32: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. dependencies=[google_dot_api_dot_annotationspb2.DESCRIPTOR,google_dot_longrunning_dot_operationspb2.DESCRIPTOR,google_dot_protobuf_dot_anypb2.DESCRIPTOR,google_dot_protobuf_dot_durationpb2.DESCRIPTOR,google_dot_protobuf_dot_emptypb2.DESCRIPTOR,google_dot_protobuf_dot_timestamppb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:45: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:53: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:57: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:61: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:65: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:73: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:78: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=1382, /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:91: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:95: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. type=None), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=2140, /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:118: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. options=None, file=DESCRIPTOR), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:125: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. options=None, file=DESCRIPTOR), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:139: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=423, /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:156: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. options=None, file=DESCRIPTOR), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:163: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. options=None, file=DESCRIPTOR), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:177: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=571, /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:194: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. options=None, file=DESCRIPTOR), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:201: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. options=None, file=DESCRIPTOR), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:215: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. index=0, containing_type=None, fields=[]), /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:218: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. serialized_end=727, /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:235: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. options=None, file=DESCRIPTOR), /home/pi/env/lib/python3.7/site-packages/validictory/validator.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Mapping, Container /home/pi/env/lib/python3.7/site-packages/yaml/constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working if not isinstance(key, collections.Hashable): INFO:gmusicapi.Mobileclient1:!-- begin debug log --! INFO:gmusicapi.Mobileclient1:version: 13.0.0 INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log INFO:gmusicapi.Mobileclient1:initialized INFO:gmusicapi.Mobileclient1:logged out /home/pi/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename)) 2020-10-27 13:15:08,885 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred'' WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred'' INFO:gmusicapi.Mobileclient1:failed to authenticate USB-MIC-JACK Initializing GPIOs 5 and 6 for assistant activity indication Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924 Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924 Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM front ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround40 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround41 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround50 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround51 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround71.0:CARD=0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround71 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934 Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934 Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=6,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0} ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924 Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2719 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 2020-10-27 13:15:13,387 : ERROR : [Errno -9997] Invalid sample rate Traceback (most recent call last): File "/home/pi/GassistPi/src/main.py", line 1051, in Myassistant().main() File "/home/pi/GassistPi/src/main.py", line 197, in init self.detector = snowboydecoder.HotwordDetector(models, sensitivity=self.sensitivity) File "/home/pi/GassistPi/src/snowboydecoder.py", line 115, in init stream_callback=audio_callback) File "/home/pi/env/lib/python3.7/site-packages/pyaudio.py", line 750, in open stream = Stream(self, *args, kwargs) File "/home/pi/env/lib/python3.7/site-packages/pyaudio.py", line 441, in init self._stream = pa.open(arguments) OSError: [Errno -9997] Invalid sample rate

shivasiddharth commented 3 years ago

share the output of:

aplay -l
arecord -l
sudo nano ./.asoundrc
sudo nano /etc/asound.conf
Aaryanjadhav11 commented 3 years ago

*aplay -l card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 H Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7

*arecord -l card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0

*sudo nano ./.asoundrc pcm.dsnooper { type dsnoop ipc_key 816357492 ipc_key_add_uid 0 ipc_perm 0666 slave { pcm "hw:1,0" channels 1 } }

pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:1,0" } capture.pcm { type plug slave.pcm "dsnooper" } } *sudo nano /etc/asound.conf

pcm.dsnooper { type dsnoop ipc_key 816357492 ipc_key_add_uid 0 ipc_perm 0666 slave { pcm "hw:1,0" channels 1 } }

pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:1,0" } capture.pcm { type plug slave.pcm "dsnooper" } }

shivasiddharth commented 3 years ago

You have not provided full list with aplay -l

Aaryanjadhav11 commented 3 years ago

It's all the things from terminal when I run aplay -l command

shivasiddharth commented 3 years ago

aplay -l will give all the audio output devices. You have a Pi 3 so at least the HDMI port should appear in the list. That is why I am saying that the list is incomplete.

Aaryanjadhav11 commented 3 years ago

Well, I started form scratche again its working now, But Now i can't make assistant headless. When i reboot, it dosen't give any response or tone Can you help please

shivasiddharth commented 3 years ago

share the output of sudo systemctl status gassistpi.service

Aaryanjadhav11 commented 3 years ago

pi@raspberrypi:~ $ sudo systemctl status gassistpi.service ● gassistpi.service - Google Assistant-Voice Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset Active: active (running) since Tue 2020-10-27 22:54:32 IST; 10s ago Main PID: 6157 (python) Tasks: 1 (limit: 2065) CGroup: /system.slice/gassistpi.service └─6157 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --pr

Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packag Oct 27 22:54:36 raspberrypi python[6157]: options=None, file=DESCRIPTOR), Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packag Oct 27 22:54:36 raspberrypi python[6157]: index=0, containing_type=None, field Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packag Oct 27 22:54:36 raspberrypi python[6157]: serialized_end=727, Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packag Oct 27 22:54:36 raspberrypi python[6157]: options=None, file=DESCRIPTOR), Oct 27 22:54:38 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packag Oct 27 22:54:38 raspberrypi python[6157]: from collections import Mapping, Con lines 1-18/18 (END)...skipping... ● gassistpi.service - Google Assistant-Voice Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2020-10-27 22:54:32 IST; 10s ago Main PID: 6157 (python) Tasks: 1 (limit: 2065) CGroup: /system.slice/gassistpi.service └─6157 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id raspi1-271118 --device_model_id raspi1-271118-raspi1-n4j65l

Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:201: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked desc Oct 27 22:54:36 raspberrypi python[6157]: options=None, file=DESCRIPTOR), Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:215: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked desc Oct 27 22:54:36 raspberrypi python[6157]: index=0, containing_type=None, fields=[]), Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:218: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descripto Oct 27 22:54:36 raspberrypi python[6157]: serialized_end=727, Oct 27 22:54:36 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:235: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked desc Oct 27 22:54:36 raspberrypi python[6157]: options=None, file=DESCRIPTOR), Oct 27 22:54:38 raspberrypi python[6157]: /home/pi/env/lib/python3.7/site-packages/validictory/validator.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 Oct 27 22:54:38 raspberrypi python[6157]: from collections import Mapping, Container ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-18/18 (END)

shivasiddharth commented 3 years ago

I see that your assistant is running without any issue. You should hear the startup chime and the assistant should work.

shivasiddharth commented 3 years ago

SHare the output of journalctl -u gassistpi.service

Aaryanjadhav11 commented 3 years ago

But I am unable to hear any chime or assistant voice. It works correct when I do it manually but, nothing on boot

pi@raspberrypi:~ $ journalctl -u gassistpi.service -- Logs begin at Tue 2020-10-27 23:00:37 IST, end at Tue 2020-10-27 23:34:08 IST Oct 27 23:04:52 raspberrypi systemd[1]: Started Google Assistant-Voice. Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: serialized_pb=b'\n\x15google/api/http Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: serialized_end=121, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-package lines 1-23...skipping... -- Logs begin at Tue 2020-10-27 23:00:37 IST, end at Tue 2020-10-27 23:34:08 IST. -- Oct 27 23:04:52 raspberrypi systemd[1]: Started Google Assistant-Voice. Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Oct 27 23:05:02 raspberrypi python[455]: serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\ Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Plea Oct 27 23:05:02 raspberrypi python[455]: serialized_end=121, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: fields=[], Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Ple Oct 27 23:05:02 raspberrypi python[455]: serialized_end=381, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Ple Oct 27 23:05:02 raspberrypi python[455]: serialized_end=430, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go Oct 27 23:05:02 raspberrypi python[455]: google_dot_protobuf_dot_descriptorpb2.DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to g Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:05:02 raspberrypi python[455]: dependencies=[google_dot_protobuf_dot_anypb2.DESCRIPTOR], Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go awa Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go awa Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go aw Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. P Oct 27 23:05:02 raspberrypi python[455]: serialized_end=144, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:48: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors i Oct 27 23:05:02 raspberrypi python[455]: google_dot_rpc_dot_status__pb2.DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:70: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:97: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, Oct 27 23:05:02 raspberrypi python[455]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:115: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors Oct 27 23:05:02 raspberrypi python[455]: file=DESCRIPTOR, lines 1-62

shivasiddharth commented 3 years ago

Can you paste the output ofjournalctl -u gassistpi.service seems like some lines are truncated. You are saying that the manual start is working fine but not the service ?

Aaryanjadhav11 commented 3 years ago

Yes, the AutoStart of assistant on boot doesn't work

This is all the output in terminal : pi@raspberrypi:~ $ journalctl -u gassistpi.service -- Logs begin at Tue 2020-10-27 23:00:37 IST, end at Tue 2020-10-27 23:54:02 IST. -- Oct 27 23:43:00 raspberrypi systemd[1]: Started Google Assistant-Voice. Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Oct 27 23:43:09 raspberrypi python[456]: serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\ Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Plea Oct 27 23:43:09 raspberrypi python[456]: serialized_end=121, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: fields=[], Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Ple Oct 27 23:43:09 raspberrypi python[456]: serialized_end=381, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:09 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:09 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Ple Oct 27 23:43:09 raspberrypi python[456]: serialized_end=430, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go Oct 27 23:43:10 raspberrypi python[456]: google_dot_protobuf_dot_descriptorpb2.DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to g Oct 27 23:43:10 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away Oct 27 23:43:10 raspberrypi python[456]: dependencies=[google_dot_protobuf_dot_anypb2.DESCRIPTOR], Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go awa Oct 27 23:43:10 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go awa Oct 27 23:43:10 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go aw Oct 27 23:43:10 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. P Oct 27 23:43:10 raspberrypi python[456]: serialized_end=144, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:48: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors i Oct 27 23:43:10 raspberrypi python[456]: google_dot_rpc_dot_status__pb2.DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:70: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors Oct 27 23:43:10 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:97: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors Oct 27 23:43:10 raspberrypi python[456]: file=DESCRIPTOR, Oct 27 23:43:10 raspberrypi python[456]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:115: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors Oct 27 23:43:10 raspberrypi python[456]: file=DESCRIPTOR, lines 1-62

shivasiddharth commented 3 years ago

Reboot the Pi allow it to stand for 2-3 mins dont try to manually start. Just dont do anything. Then share the output of:

sudo systemctl status gassistpi.service
journalctl -u gassistpi.service
sudo nano /etc/asound.conf
sudo nano ./.asoundrc
aplay -l 
arecord -l

I still need to know as to why you have not given me the full aplay -l list

Aaryanjadhav11 commented 3 years ago

I did as you said, here are the outputs after 5 min

pi@raspberrypi:~ $ sudo systemctl status gassistpi.service ● gassistpi.service - Google Assistant-Voice Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset Active: active (running) since Wed 2020-10-28 00:14:53 IST; 109ms ago Main PID: 22355 (python) Tasks: 1 (limit: 2065) CGroup: /system.slice/gassistpi.service └─22355 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --p

Oct 28 00:14:53 raspberrypi systemd[1]: Started Google Assistant-Voice. lines 1-9/9 (END)

pi@raspberrypi:~ $ journalctl -u gassistpi.service -- Logs begin at Tue 2020-10-27 23:00:37 IST, end at Wed 2020-10-28 00:16:38 IST. -- Oct 27 23:55:25 raspberrypi systemd[1]: Started Google Assistant-Voice. Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: Deprecat Oct 27 23:55:34 raspberrypi python[446]: serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x1 Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: Deprecat Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: Deprecat Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: Deprecat Oct 27 23:55:34 raspberrypi python[446]: serialized_end=121, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: Depreca Oct 27 23:55:34 raspberrypi python[446]: fields=[], Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: Depreca Oct 27 23:55:34 raspberrypi python[446]: serialized_end=381, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: Depreca Oct 27 23:55:34 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: Depreca Oct 27 23:55:34 raspberrypi python[446]: serialized_end=430, Oct 27 23:55:34 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: D Oct 27 23:55:34 raspberrypi python[446]: google_dot_protobuf_dot_descriptorpb2.DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: D Oct 27 23:55:35 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: Deprec Oct 27 23:55:35 raspberrypi python[446]: dependencies=[google_dot_protobuf_dot_anypb2.DESCRIPTOR], Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: Deprec Oct 27 23:55:35 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: Deprec Oct 27 23:55:35 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: Depre Oct 27 23:55:35 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: Depre Oct 27 23:55:35 raspberrypi python[446]: serialized_end=144, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto Oct 27 23:55:35 raspberrypi python[446]: google_dot_rpc_dot_status__pb2.DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto Oct 27 23:55:35 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto Oct 27 23:55:35 raspberrypi python[446]: file=DESCRIPTOR, Oct 27 23:55:35 raspberrypi python[446]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto lines 1-61

pi@raspberrypi:~ $ sudo nano /etc/asound.conf pcm.dsnooper { type dsnoop ipc_key 816357492 ipc_key_add_uid 0 ipc_perm 0666 slave { pcm "hw:1,0" channels 1 } }

pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:1,0" } capture.pcm { type plug slave.pcm "dsnooper" } }

pi@raspberrypi:~ $ sudo nano ./.asoundrc pcm.!default { type asym playback.pcm { type plug slave.pcm "output" } capture.pcm { type plug slave.pcm "input" } }

pcm.output { type hw card 0 }

ctl.!default { type hw card 0 }

pi@raspberrypi:~ $ aplay -l List of PLAYBACK Hardware Devices card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7

pi@raspberrypi:~ $ arecord -l List of CAPTURE Hardware Devices card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0

shivasiddharth commented 3 years ago

Do you have a USB DAC ? What is you mic and what is your audio out device ?

Aaryanjadhav11 commented 3 years ago

I have a pi3 and I am using usb mic as input and 3.5mm onboard jack for audio output

shivasiddharth commented 3 years ago

Which version of buster are you using ? Date of buster ?

shivasiddharth commented 3 years ago

Can you share a screenshot of the terminal with aplay -l command. The devices that you have and the output just does not add up.

Aaryanjadhav11 commented 3 years ago

It's NOOBS_v3_4_1 and I think I downloaded it in month of august around 15th

Aaryanjadhav11 commented 3 years ago

Screenshot (5)

Aaryanjadhav11 commented 3 years ago

I think sound isn't a problem because I get audio output for everything [YouTube, music]

shivasiddharth commented 3 years ago

Are you using a lite version of Raspbian OS ? May be thats why HDMI is not coming up. The audio config that you are using is for Desktop version. Thats what is causing the no audio issue with the service.

Use the desktop version of Raspbian. Download the image from Pi website. Write the image without using Noobs. Give it a try and get back.

Aaryanjadhav11 commented 3 years ago

without using noobs it gives a kernel error if i flash image so i was using noob to install os and no i am not using lite version of Raspbian OS

shivasiddharth commented 3 years ago

Download the image from here and see http://downloads.raspberrypi.org/raspbian_full/images/raspbian_full-2020-02-14/ http://downloads.raspberrypi.org/raspbian_full/images/raspbian_full-2020-02-14/2020-02-13-raspbian-buster-full.zip

Aaryanjadhav11 commented 3 years ago

which etcher should I use? coz I used balenaetcher and got kernel error

shivasiddharth commented 3 years ago

Etcher has nothing to do with kernel error. You need to format the SD card first before you write the image. I always use SD formatter for formatting and Win32 disk imager. Or else You can use the Pi imager software https://www.raspberrypi.org/downloads/ I am not going to do the hand holding with burning images here.

Aaryanjadhav11 commented 3 years ago

Should I send output of commands given by you before installing gassistpi or after?

Aaryanjadhav11 commented 3 years ago

Screenshot (6)

Aaryanjadhav11 commented 3 years ago

here is output before installing gassistpi

shivasiddharth commented 3 years ago

This is a Feb build. So there is no need to run the audio modifications I have given for post May builds. All I am interested is in the working of the assistant.

Aaryanjadhav11 commented 3 years ago

I have installed Assistant but, same as before works really good manually but doesn't auto start on boot

shivasiddharth commented 3 years ago

share the output of:

aplay -l
arecord -l
sudo nano ./.asoundrc
sudo nano /etc/asound.conf
Aaryanjadhav11 commented 3 years ago

pi@raspberrypi:~ $ aplay -l List of PLAYBACK Hardware Devices card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/7 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1] Subdevices: 1/1 Subdevice #0: subdevice #0

sudo nano ./.asoundrc pcm.dsnooper { type dsnoop ipc_key 816357492 ipc_key_add_uid 0 ipc_perm 0666 slave { pcm "hw:1,0" channels 1 } }

pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:1,0" } capture.pcm { type plug slave.pcm "dsnooper" } }

sudo nano /etc/asound.conf:

pcm.dsnooper { type dsnoop ipc_key 816357492 ipc_key_add_uid 0 ipc_perm 0666 slave { pcm "hw:1,0" channels 1 } }

pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:1,0" } capture.pcm { type plug slave.pcm "dsnooper" } }

shivasiddharth commented 3 years ago

Do: sudo nano ./.asoundrc

Remove everything in that and paste the following

pcm.dsnooper {
    type dsnoop
    ipc_key 816357492
    ipc_key_add_uid 0
    ipc_perm 0666
    slave {
        pcm "hw:1,0"
        channels 1
    }
}

pcm.!default {
        type asym
        playback.pcm {
                type plug
                slave.pcm "hw:0,0"
        }
        capture.pcm {
                type plug
                slave.pcm "dsnooper"
        }
}

After that do:

sudo rm /etc/asound.conf
sudo cp ./.asoundrc /etc/asound.conf

Restart the Pi and assistant should work.

If it does not work, then I you need to share the output of:

sudo nano ./.asoundrc
sudo nano /etc/asound.conf
sudo nano /home/${USER}/GassistPi/systemd/gassistpi.service
Aaryanjadhav11 commented 3 years ago

Tank you soo much, It worked! finally!

shivasiddharth commented 3 years ago

Closing this issue.