Closed Harry989 closed 2 years ago
I know the YouTube API is functioning correctly as I am able to play music through youtube with no issues
Could be an issue with the way you have entered the spotify credentials. share the config.yaml here with the spotify credentials. Do not burr or change anything.
Did you authenticate the spotify ?
Did you authenticate the spotify ?
I am unsure what you mean by authenticating the spotify but this is my config.yaml file
#Config file for declaring custom actions'parameters. The parameters have been listed here in alphabetical order (A-Z).
#Adafruit_IO. Sending commands from Genuine Google Home/Assistant Devices to control Domoticz Tasmota etc.
ADAFRUIT_IO:
ADAFRUIT_IO_CONTROL: 'Disabled'
ADAFRUIT_IO_USERNAME: 'ENTER YOUR ADAFRUIT_IO USERNAME HERE'
ADAFRUIT_IO_KEY: 'ENTER YOUR ADAFRUIT_IO KEY HERE'
FEEDNAME: 'ENTER YOUR ADAFRUIT_IO FEEDNAME THAT YOU WANT TO MONITOR HERE'
#Aftership API to Track Parcels. Create a developer account with Aftership and generate a key.
#The number of couriers should match the number of tracking codes.
AFTERSHIP:
Key: 'ENTER YOUR AFTERSHIP KEY HERE'
Parcels:
Courier_Name:
- 'usps'
- 'fedex'
Tracking_Code:
- '9400111699000119607527'
- '953255692957'
#Custom conversation. Add your queries and expected assistant response. Do not add symbols or special charecters.
Conversation:
Conversation_Control: 'Enabled'
question:
1:
- 'Who are you'
2:
- 'Do you have a family'
answer:
1:
- 'I am not the one you expect to be'
- 'Who do you think I am'
- 'What bothers you'
2:
- 'Nope i am forever alone'
- 'The whole world is my family'
#Send sms with clickatell
Clickatell:
Clickatell_Control: 'Disabled'
Clickatell_API: 'ENTER_YOUR_CLICKATELL_API'
Name:
- 'Bob'
- 'Adam'
Reciever:
- '+48123456789'
- '+46123456789'
# Deezer user credentials
Deezer:
Deezer_Control: 'Enabled'
User_id: '2247762504'
# DIY-HUE declarations
DIYHUE:
DIYHUE_Control: 'Enabled'
# Domoticz declarations
Domoticz:
# Set this to 'Enabled' to control devices registered to Domoticz server.
Domoticz_Control: 'Disabled'
Server_IP:
# If you are running the server on the Pi itself, then change the ip to 'localhost'
- '192.168.0.10'
Server_port:
- '443'
Devices:
#The number of names and number of ids should be equal
#List the device names that you want to control
Name:
- 'Lamp1'
- 'Lamp2'
- 'Lamp3'
#Assign the device ids in the same order as the devices listed above
Id:
- '1'
- '2'
- '3'
#ESP control declarations. Follow a similar pattern to add your own list.
ESP:
ESP_Control: 'Enabled'
IP: 'xxxxxxxxxxxx' #Enter your ESP's IP here.
devicename:
- 'Device 1'
- 'Device 2'
- 'Device 3'
deviceid:
- '/Device1'
- '/Device2'
- '/Device3'
#Streaming songs from Gaana.com
Gaana:
Gaana_Control: 'Enabled'
Playlist:
# Enter your desired playlists
- 'https://gaana.com/playlist/gaana-dj-bollywood-top-50-1'
- 'https://gaana.com/playlist/alka-yagnik-bday'
# #Enter your Google Login Credentials
# Gmusicapi:
# Gmusic_Control: 'Enabled'
#Pushbullet
Pushbullet:
Pushbullet_Control: 'Enabled'
#API Key for YouTube and Kickstarter Search Engine
Google_cloud_api_key: "AIzaSyBSAbSHd5dDcIkJLpBodODsIs74aT9LLr8"
#GPIOS used in the project. Feel free to change in case.
Gpios:
AIY_indicator:
- 25
assistant_indicators:
- 05
- 06
ir:
- 17
picontrol:
- 12
- 13
- 24
pushbutton_trigger:
- 22
servo:
- 27
stopbutton_music_AIY_pushbutton:
- 23
#Preset commands/requests using IR remote/receiver
IR:
IR_Control: 'Disabled'
Codes:
- 58056
- 58072
- 58064
Commands:
- "Start conversation"
- "custom stop" #Custom command stop
- "what is the time in London"
#KODI custom declarations change IP, music directory and video directory according to your device
Kodi:
Kodi_Control: 'Disabled'
ip: 192.168.88.226
port: 8080
username: kodi
password: kodi
musicdirectory: '/home/osmc/Music/'
videodirectory: '/home/osmc/Movies/'
windowcmd:
- Home
- Settings
- Weather
- Videos
- Music
- Player
window:
- home
- settings
- weather
- videos
- music
- playercontrols
#Change you language. Default is english
Language:
Choice: 'en-GB'
Language options:
- 'en-US' #'English'US
- 'en-GB' #English GB
- 'fr-FR' # 'French'
- 'de-DE' # 'German'
- 'it-IT' # 'Italian'
- 'es-ES' # 'Spanish'
- 'nl-NL' # 'Dutch'
- 'sv-SE' # 'Swedish'
# Enter your Magic Mirror IP
Mmmip: 'ENTER_YOUR_MAGIC_MIRROR_IP'
#MQTT credentials
MQTT:
MQTT_Control: 'Disabled'
IP: 'Enter your MQTT IP ADDRESS here'
UNAME: 'Enter your MQTT USERNAME here'
PSWRD: 'Enter your MQTT PASSWORD here'
TOPIC: 'ENTER your MQTT TOPIC here'
#Text to speak notifications (replay after me workaround for mqtt).
#You can change command word to something else if your command is mixed with native functions
Notify_TTS:
Notify_TTS_Control: 'Enabled'
#Pushbullet
Pushbullet:
Pushbullet_API_KEY: 'ENTER YOUR PUSHBULLET KEY HERE'
Pushbullet_Control: 'Enabled'
#Radio station declarations. Follow a similar pattern to add your own stations.
#Google may not pickup the pronunciation of radio station names, hence 'Radio 1' etc is required.
Radio_stations:
Radio_Control: 'Enabled'
stationnames:
- 'Radio 1'
- 'Radio 2'
- 'Radio 3'
- 'Radio 4'
- 'Radio 5'
- 'Radio 6'
stationlinks:
- 'http://stream.100p.nl/100pctnl.mp3'
- 'http://stream.radiocorp.nl/100pnl_feest_mp3'
- 'http://playerservices.streamtheworld.com/api/livestream-redirect/SKYRADIO.mp3'
- 'https://stream.slam.nl/slam_mp3'
- 'http://icecast.omroep.nl/3fm-bb-mp3'
- 'http://playerservices.streamtheworld.com/api/livestream-redirect/VERONICA.mp3'
stationradio:
- '100% NL'
- '100% NL Party'
- 'Skyradio'
- 'Slam FM'
- '3 FM'
- 'Veronica'
#Pi GPIO control declarations. Follow a similar pattern to add your own list of GPIOs
Raspberrypi_GPIO_Control:
GPIO_Control: 'Enabled'
lightnames:
- 'kitchen lights'
- 'bathroom lights'
- 'bedroom lights'
#Custom scripts. Add your scripts commands.
Script:
Script_Control: 'Disabled'
scriptname:
- 'Script test'
scriptcommand:
- 'echo test >> /home/pi/test.txt'
#Speech to text conversion
Speechtotext:
Google_Cloud_Speech:
Cloud_Speech_Control: 'Disabled'
Google_Cloud_Speech_Credentials_Path: "ENTER THE PATH TO YOUR CLOUD SPEECH CREDENTIALS FILE HERE"
#Spotify credentials. Register for a spotify developer and get the credentials.
Spotify:
Spotify_Control: 'Enabled'
client_id: 'ecb7f9c463b54217973ce2504bc34541'
client_secret: 'e425a9949284439192a4184e81b1f828'
username: '31kgsx4uf5yc7cuwmo6dmdwmtela'
#Enter your Tasmota Device details below
Tasmota_devicelist:
Tasmota_Control: 'Enabled'
friendly-names:
- 'Desk Light'
- 'Table Light'
ipaddresses:
- '192.168.1.36'
- '192.168.1.35'
portID:
- '1'
- '1'
#Text to speech conversation
TextToSpeech:
# Set the choice to:
# 1. "gTTS" for quotaless text to speech conversion
# 2. "Google Cloud" for Google Cloud text to sppech conversion. Free limit 4 Million Characters/month
Choice: 'gTTS'
Google_Cloud_TTS_Credentials_Path: "ENTER THE PATH TO YOUR TTS CREDENTIALS FILE HERE"
#Voice for the "SAY" function or text to speech. Set it to 'Female' or 'Male' depending on your preference.
#Note: This does not change Google's voice. this is only for the speech generated within custom actions.
Voice_Gender: 'Female'
#Custom wakeword On/Off.
#To enable custom wakeword, change status to Enabled and restart the assistant.
Wakewords:
Ok_Google: 'Enabled'
Custom_Wakeword: 'Disabled'
Wakeword_Engine: 'Picovoice'
Picovoice_wakeword_models:
- '/home/pi/GassistPi/src/resources/picovoice_models/americano_raspberry-pi.ppn'
#Wemo/Emulated Wemo devices
Wemo:
Wemo_Control: 'Disabled'
Wemo_Devices:
IP_Address:
- 'Enter wemo device 1 ip here'
- 'Enter wemo device 2 ip here'
Device_Names:
- 'Enter wemo device 1 name here'
- 'Enter wemo device 1 name here'
#Youtube music streaming
YouTube:
YouTube_Control: 'Enabled'
I also believe I entered the credentials correctly.
Your spotify username looks wrong ! After entering the Spotify credentials, you need to manually start the assistant. It will open up a browser tab in which you need to authenticate the Spotify. Without authenticating, the spotify will leave the assistant hanging.
Your spotify username looks wrong ! After entering the Spotify credentials, you need to manually start the assistant. It will open up a browser tab in which you need to authenticate the Spotify. Without authenticating, the spotify will leave the assistant hanging.
I am running my pi headless, and what do you mean the spotify username looks wrong?
And that apparently, is my username.
Till your post, no one ever reported to me an autogenerated alphanumeric username. Thats why I thought that the username was wrong. Sorry ! In most cases, what people have is a custom set username.
For spotify authentication, you need to have a display connected or at least connect to the pi via VNC. Stop the headless service and manually start the assistant. A browser window will pop up for your to confirm the spotify permission, etc.
Till your post, no one ever reported to me an autogenerated alphanumeric username. Thats why I thought that the username was wrong. Sorry ! In most cases, what people have is a custom set username.
For spotify authentication, you need to have a display connected or at least connect to the pi via VNC. Stop the headless service and manually start the assistant. A browser window will pop up for your to confirm the spotify permission, etc.
Well I do have a normal username, It's Harry989. Yet this is different. Weird.
Also I have no desktop environment installed on the pi, It's just the 32bit lite img. So I'm not too sure what to do from here.
You really need to have the desktop environment.
I see, Is there a way to install it without having to wipe my pi?
It is there, but it tends to break so many other things. My sincere advise would be to start from scratch with a desktop image.
Damn. I'll go do that then really quick.
Do you know if the 64bit environment causes any issues with GassistPi?
Google Assistant does not have a 64 bit version for arm Linux. OS has to be 32 bit.
Google Assistant does not have a 64 bit version for arm Linux. OS has to be 32 bit.
Yeah I had figured, I'm just installing GassistPi as we speak.
I also notice I am running into a concerningly less amount of errors than I had before with the lite img.
Okay I have gotten to the point where it asks for auth in the browser but I keep getting this
Nervermind I just copied the link and opened it in a new tab which worked weirdly
Which brings me to another error, upon attempting to play a playlist I get:
ON_RECOGNIZING_SPEECH_FINISHED:
{"text": "play favourite favourite songs playlist on Spotify"}
stopping vlc
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.26.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Directory: /tmp/
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: female-say.mp3 ...
MPEG 2.0 L III cbr32 24000 mono
[0:01] Decoding of female-say.mp3 finished.
favourite favourite songs playlist on spotif
2022-03-22 10:14:10,065 : ERROR : HTTP Error for GET to https://api.spotify.com/v1/users/e425a9949284439192a4184e81b1f828/playlists with Params: {'limit': 50, 'offset': 0} returned 404 due to Not found.
Fatal Python error: Bus error
Thread 0x6fcfd440 (most recent call first):
File "/home/pi/GassistPi/src/main.py", line 263 in pushbutton
File "/usr/lib/python3.9/threading.py", line 892 in run
File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
Thread 0xb6f1f980 (most recent call first):
File "/home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py", line 119 in __exit__
File "/home/pi/GassistPi/src/main.py", line 1100 in main
File "/home/pi/GassistPi/src/main.py", line 1105 in <module>
Bus error
I just realised that is definitely A username issue, I'll change it to what it probably should be and see if that fixes it.
And we have another new issue, I love fixing issues just to make more issues. Great fun I have a feeling that from the number 0 underneath the playlist name means it isn't seeing something but there's just nothing coming out of the speakers so in my eyes that's a mild issue.
How many songs do you have in the playlist ?
How many songs do you have in the playlist ?
I have 202 songs in it, but it still fails when I try and play one with 22 songs in it.
Are all those playlists created by you or someone else's playlist added to your account ?
They’re both mine created by me
Remove the "#" in these lines. https://github.com/shivasiddharth/GassistPi/blob/cd416148e46a661d767c371814d398f17bccb460/src/actions.py#L1494 https://github.com/shivasiddharth/GassistPi/blob/cd416148e46a661d767c371814d398f17bccb460/src/actions.py#L1516 https://github.com/shivasiddharth/GassistPi/blob/cd416148e46a661d767c371814d398f17bccb460/src/actions.py#L1502
Then give a command to play a playlist. And then share the terminal screenshot like above.
This is what I get
Its not picking any of your playlists.
Weird, It does get the name right. but would capitalisation matter?
It says there are 0 playlists against the username. The "favourite songs" is extracted from the command you gave. Its not actually from your account. The system is checking for "favourite songs" and as it sees no playlist, it prints that 0 below. remove the "#" ion this line and see what it says. I suspect it to be some kind of username issue.
It says there are 0 playlists against the username. The "favourite songs" is extracted from the command you gave. Its not actually from your account. The system is checking for "favourite songs" and as it sees no playlist, it prints that 0 below. remove the "#" ion this line and see what it says. I suspect it to be some kind of username issue.
What do you want me to uncomment? And yeah, I agree it must be some sort of user issue.
oopsie forgot to paste the link https://github.com/shivasiddharth/GassistPi/blob/cd416148e46a661d767c371814d398f17bccb460/src/actions.py#L1487
There seems to be some kind of an issue between that alphanumeric username and proper custom username.
Yeah well now I don't think this is an error with the whole username thing
ON_RECOGNIZING_SPEECH_FINISHED:
{"text": "play favourite songs from Spotify"}
stopping vlc
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.26.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Directory: /tmp/
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: female-say.mp3 ...
MPEG 2.0 L III cbr32 24000 mono
[0:01] Decoding of female-say.mp3 finished.
favourite songs
{'display_name': 'harry989', 'external_urls': {'spotify': 'https://open.spotify.com/user/harry989'}, 'followers': {'href': None, 'total': 0}, 'href': 'https://api.spotify.com/v1/users/harry989', 'id': 'harry989', 'images': [], 'type': 'user', 'uri': 'spotify:user:harry989'}
0
{'Playlists': []}
[]
ON_CONVERSATION_TURN_FINISHED:
{"with_follow_on_turn": false}
Let's see if changing it back to the weird numeric username does anything.
oh shit it works suddenly. Huh
ON_RECOGNIZING_SPEECH_FINISHED:
{"text": "play favourite songs from Spotify"}
stopping vlc
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.26.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Directory: /tmp/
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: female-say.mp3 ...
MPEG 2.0 L III cbr32 24000 mono
[0:01] Decoding of female-say.mp3 finished.
favourite songs
{'display_name': 'Harry989', 'external_urls': {'spotify': 'https://open.spotify.com/user/31kgsx4uf5yc7cuwmo6dmdwmtela'}, 'followers': {'href': None, 'total': 0}, 'href': 'https://api.spotify.com/v1/users/31kgsx4uf5yc7cuwmo6dmdwmtela', 'id': '31kgsx4uf5yc7cuwmo6dmdwmtela', 'images': [], 'type': 'user', 'uri': 'spotify:user:31kgsx4uf5yc7cuwmo6dmdwmtela'}
4
{'Playlists': [0, 0, 0, 0]}
total tracks 342
/home/pi/env/lib/python3.9/site-packages/spotipy/client.py:707: DeprecationWarning: You should use `playlist(playlist_id)` instead
warnings.warn(
total tracks 2955
total tracks 22
total tracks 202
[[0, 'Sad Lofi Fruits 🥺 lofi covers to relax, sleep, heal broken people', ['Lofi Fruits Music Yellow', 'Lofi Fruits Music Jocelyn Flores', 'Lofi Fruits Music Frozen', 'Lofi Fruits Music Stan', 'Lofi Fruits Music Leaves From The Vine', 'Lofi Fruits Music Night Trouble', 'Lofi Fruits Music everything i wanted', 'Lofi Fruits Music 7 Years', 'Lofi Fruits Music Somebody That I Used to Know', 'Lofi Fruits Music Fantasy (Talking To The Moon)', 'Lofi Fruits Music Deep Think', 'Lofi Fruits Music Riptide', 'Lofi Fruits Music Arcade', 'Lofi Fruits Music Clair de Lune', 'Lofi Fruits Music Una Mattina', 'Lofi Fruits Music The Remedy For A Broken Heart', 'Lofi Fruits Music Sunset Lover', 'Lofi Fruits Music Hurts So Good', 'Lofi Fruits Music Steven Universe', 'Lofi Fruits Music Get You the Moon', 'Lofi Fruits Music Dancing in the Moonlight', 'Lofi Fruits Music Calm Study Ambience', 'Lofi Fruits Music Tulip Fields', 'Lofi Fruits Music Riverside', "Lofi Fruits Music I'm Yours", "Lofi Fruits Music Autumn's End", 'Lofi Fruits Music Easy On Me', 'Lofi Fruits Music Toxic', "Lofi Fruits Music Gangsta's Paradise", 'Lofi Fruits Music Stay High', 'Lofi Fruits Music There We Go', 'Lofi Fruits Music Do I Wanna Know?', 'Lofi Fruits Music Stay', 'Lofi Fruits Music Tokyo Early Morning Cafe', "Lofi Fruits Music Why'd You Only Call Me When You're High?", 'Lofi Fruits Music Autumn Leaves', 'Lofi Fruits Music 2AM Zone-Out Gaming', 'Lofi Fruits Music I Got 5 On It', 'Lofi Fruits Music Warm Breeze', 'Lofi Fruits Music Study With Me', 'Lofi Fruits Music Fly Me To The Moon', "Lofi Fruits Music Summer's End", 'Lofi Fruits Music abcdefu', 'Lofi Fruits Music May Flowers', "Lofi Fruits Music Tell Me Why I'm Waiting", 'Lofi Fruits Music Vast Session', 'Lofi Fruits Music Take Me To Church', 'Lofi Fruits Music Mystery Road', 'Lofi Fruits Music Disturbia', 'Lofi Fruits Music Lakeside Morning', 'Lofi Fruits Music Golden Hour', 'Lofi Fruits Music Howling Silence', 'Lofi Fruits Music Deep End', 'Lofi Fruits Music Winter Winds', "Lofi Fruits Music Can't Feel My Face", 'Lofi Fruits Music Buzzing Bees', 'Lofi Fruits Music If The World Was Ending', 'Lofi Fruits Music Dark Woods', 'Lofi Fruits Music Changes', 'Lofi Fruits Music Escape', 'Lofi Fruits Music All We Do', 'Lofi Fruits Music On The Road', 'Lofi Fruits Music Location', 'Lofi Fruits Music Generous', 'Lofi Fruits Music STAY', 'Lofi Fruits Music 3 AM. Gaming', 'Lofi Fruits Music Moonlight', 'Lofi Fruits Music Corn', 'Lofi Fruits Music What a Time', 'Lofi Fruits Music Slow Drifting Lofi', 'Lofi Fruits Music Mirror Masa', 'Chill Fruits Music Bad Romance', 'Lofi Fruits Music The End of Spring', 'Lofi Fruits Music City of Stars', 'Lofi Fruits Music New Beginnings', 'Lofi Fruits Music Dusk Till Dawn', 'Lofi Fruits Music SAD!', 'Lofi Fruits Music Fantasy', 'Fallen Roses Falling Out of Love', 'Lofi Fruits Music Sun-kissed', 'Lofi Fruits Music Let it Go', 'Lofi Fruits Music Sunflower', 'Lofi Fruits Music Harvest', 'Lofi Fruits Music Better Together', 'Lofi Fruits Music The Cave', 'Lofi Fruits Music Ritual', 'Lofi Fruits Music Hide and Seek', 'Lofi Fruits Music Happiest Year', 'Lofi Fruits Music Death Bed', 'Lofi Fruits Music Stereo Hearts', 'Lofi Fruits Music XO Tour Llif3', 'Lofi Fruits Music Soft Cherry Blossoms', "Lofi Fruits Music L's Theme", 'Lofi Fruits Music Swan Lake', 'Lofi Fruits Music Popsicles', 'Lofi Fruits Music If The World Was Ending', 'Lofi Fruits Music Picnic Beach', 'Lofi Fruits Music Sunset Breeze', 'Lofi Fruits Music ILY (I Love You Baby)', 'Lofi Fruits Music Killing Me Softly With His Song']], [1, 'Rain Fruits Music ⛈ rain sounds, relaxing nature thunder, white noise', ['Sleep Fruits Music Rain Fruits Sounds, Pt. 1', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 2', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 3', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 4', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 5', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 6', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 7', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 8', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 9', 'Sleep Fruits Music Rain Fruits Sounds, Pt. 10', 'Sleep Fruits Music Gentle Rain Fall, Pt. 11', 'Sleep Fruits Music White Noise, Pt. 12', 'Sleep Fruits Music Quiet Rain, Pt. 13', 'Sleep Fruits Music Sleep Rain, Pt. 14', 'Sleep Fruits Music Soothing Rain, Pt. 15', 'Sleep Fruits Music A Gentle Thunderstorm, Pt. 16', 'Sleep Fruits Music White Noise Rain, Pt. 17', 'Sleep Fruits Music Soothing Brown Waves with Pouring Rain, Pt. 18', 'Sleep Fruits Music Gentle Rain, Pt. 19', 'Sleep Fruits Music Rain Sounds Meditation, Pt. 20', 'Sleep Fruits Music Pouring Rain, Pt. 21', 'Sleep Fruits Music Angry Thunderstorm, Pt. 22', 'Sleep Fruits Music Rain Drops on the Car Windshield, Pt. 23', 'Sleep Fruits Music Rain Sleep, Pt. 24', 'Sleep Fruits Music Rain Drops on a Plastic Roof, Pt. 25', 'Sleep Fruits Music Rain Sounds of the Nature, Pt. 26', 'Sleep Fruits Music Deep Forest Rain, Pt. 27', 'Sleep Fruits Music Monsoonal Rainfall, Pt. 28', 'Sleep Fruits Music Rainfall Noise Loopable, Pt. 29', 'Sleep Fruits Music 10 Hours Rain Sound, Pt. 30', 'Sleep Fruits Music Rain to Fall Asleep, Pt. 31', 'Sleep Fruits Music Rain Loopable No Fade, Pt. 32', 'Sleep Fruits Music Rain White Noise, Pt. 33', 'Sleep Fruits Music Rainstorm White Noise, Pt. 34', 'Sleep Fruits Music Rain White Noise Machine, Pt. 35', 'Sleep Fruits Music Rain Sounds White Noise, Pt. 36', 'Sleep Fruits Music Soothing Brown Noise, Pt. 37', 'Sleep Fruits Music Heavier Rain Fall with Thunder, Pt. 38', 'Sleep Fruits Music Light Rain in the Forest, Pt. 39', 'Sleep Fruits Music Early Morning Rain, Pt. 40', 'Sleep Fruits Music Gentle Thunderstorm, Pt. 41', 'Sleep Fruits Music Rain on the Bedroom Window, Pt. 42', 'Sleep Fruits Music Rain Forest Thunderstorm, Pt. 43', 'Sleep Fruits Music Gentle Rain Drops, Pt. 44', 'Sleep Fruits Music Rain Drops on a Tin Roof, Pt. 45', 'Sleep Fruits Music Rain Fall on a Car Hood, Pt. 46', 'Sleep Fruits Music Rainy Noises, Pt. 47', 'Sleep Fruits Music Wake Up Gentle Rainfall, Pt. 48', 'Sleep Fruits Music Dock Rain Sounds, Pt. 49', 'Sleep Fruits Music Cat Music and Relaxing Sounds, Pt. 50', 'Sleep Fruits Music Dog Music and Relaxing Sounds, Pt. 51', 'Sleep Fruits Music City Rain Fall, Pt. 52', 'Sleep Fruits Music Weißes Rauschen & Baby Schlaf, Pt. 53', 'Sleep Fruits Music Rain Meditate Sounds, Pt. 54', 'Sleep Fruits Music Rain Clappering under a Tree FX, Pt. 55', 'Sleep Fruits Music Steady Rain and Rolling Thunder, Pt. 56', 'Sleep Fruits Music Rain Sleepy Bedtime Ambient, Pt. 57', 'Sleep Fruits Music Rain Sounds to Focus, Relax, Meditate, Pt. 58', 'Sleep Fruits Music Rain Spa Sounds, Pt. 59', 'Sleep Fruits Music Deep Sleep Rain Fall and Waterfall Noise, Pt. 60', 'Sleep Fruits Music 8 Hours of Rain and Thunder Sounds, Pt. 61', 'Sleep Fruits Music Rain Fall to Help with Insomnia, Pt. 62', 'Sleep Fruits Music Rain Sounds to Help Broken People to Fall Asleep, Pt. 63', 'Sleep Fruits Music Gentle Rain and Soothing Brown Noise, Pt. 64', 'Sleep Fruits Music Thunderstorms and Plane Sounds, Pt. 65', 'Sleep Fruits Music Forest Rain with Occasional Tropical Thunder, Pt. 66', 'Sleep Fruits Music Evening Light Rain on the Rooftop, Pt. 67', 'Sleep Fruits Music Poolside Rain to Relax, Meditate, Concentrate, Pt. 68', 'Sleep Fruits Music Rain Showers with Pouring Rainfall, Pt. 69', 'Sleep Fruits Music Rain on Forest Leaves with Thunder, Pt. 70', 'Sleep Fruits Music Rain Drops and Vacuum Cleaners, Pt. 71', 'Sleep Fruits Music Rolling Thunder and Rainfall Outside, Pt. 72', 'Sleep Fruits Music Heavy Rain & Thunder on Tin Roof, Pt. 73', 'Sleep Fruits Music Rain Falling with Distant Thunderstorm Sounds, Pt. 74', 'Sleep Fruits Music Rain Drops on the Lake, Pt. 75', 'Sleep Fruits Music Pouring Rain Loopable with No Fade, Pt. 76', 'Sleep Fruits Music Steady Rain and Pink Noise, Pt. 77', 'Sleep Fruits Music Loopable Rain Sounds, Pt. 78', 'Sleep Fruits Music Continuous Rain FX, Pt. 79', 'Sleep Fruits Music Slowing Rain Drops with Steady Thunder, Pt. 80', 'Sleep Fruits Music Rain on the Floor, Pt. 81', 'Sleep Fruits Music Monsoon Rain Fall with Distant Thunderstorm, Pt. 82', 'Sleep Fruits Music Rainforest Nature Sounds, Pt. 83', 'Sleep Fruits Music Jungle Rainforest Sounds, Pt. 84', 'Sleep Fruits Music Tropical Rain Storm with Waterfall Noises, Pt. 85', 'Sleep Fruits Music Rain on Big Roof Loopable, Pt. 86', 'Sleep Fruits Music Rainfall for Deep Sleep, Pt. 87', 'Sleep Fruits Music Relaxing Rain Sounds, Pt. 88', 'Sleep Fruits Music Rain Drops on the Roof, Pt. 89', 'Sleep Fruits Music Calm Rain Sounds, Pt. 90', 'Sleep Fruits Music Rain on Window, Pt. 91', 'Sleep Fruits Music Small Rainfall Nature Sounds, Pt. 92', 'Sleep Fruits Music Rainfall on Roof, Pt. 93', 'Sleep Fruits Music Thunder Sounds, Pt. 94', 'Sleep Fruits Music Rain Storm Sounds, Pt. 95', 'Sleep Fruits Music Rain & Thunder, Pt. 96', 'Sleep Fruits Music Ocean Waves, Pt. 97', 'Sleep Fruits Music Dreamy Rain, Pt. 98', 'Sleep Fruits Music Loopable Heavy Rain, Pt. 99', 'Sleep Fruits Music Awakening Rain Fall, Pt. 100']], [2, 'Favourite favourite songs', ['Lemon Demon Action Movie Hero Boy', 'The Strokes The Adults Are Talking', 'Matt Maltese madhouse', 'Dayglow Hot Rod', 'Dayglow Listerine', 'Joji SLOW DANCING IN THE DARK', 'The Strokes The Adults Are Talking', 'Pink Guy Rice Balls', 'Slipknot Vermilion, Pt. 2', "Corey Taylor From Can to Can't", 'System Of A Down Aerials', 'Metallica Enter Sandman', 'Korn Make Me Bad', 'Oliver Tree Bury Me Alive', 'Beach House Space Song', 'Jack Stauber Buttercup', 'Cults Always Forever', 'Foo Fighters My Hero', 'Panic! At The Disco I Write Sins Not Tragedies', 'Joji Daylight', '88rising Midsummer Madness', 'Phum Viphurit Hello, Anxiety']], [3, 'Favourite songs', ['Dayglow Hot Rod', 'Twenty One Pilots Good Day', 'Twenty One Pilots Choker', 'Twenty One Pilots Shy Away', 'Twenty One Pilots The Outside', 'Twenty One Pilots Saturday', 'Twenty One Pilots Never Take It', 'Twenty One Pilots Mulberry Street', 'Twenty One Pilots Formidable', 'Twenty One Pilots Bounce Man', 'Twenty One Pilots No Chances', 'Twenty One Pilots Redecorate', 'Psychostick Numbers (I Can Only Count to Four)', 'COIN Hypnotica', 'Dayglow Listerine', 'Glass Animals Heat Waves (with iann dior)', 'Lemon Demon Two Trucks', 'Joji Will He', 'Joji SLOW DANCING IN THE DARK', 'Gorillaz On Melancholy Hill', 'Nirvana Smells Like Teen Spirit', 'The Strokes The Adults Are Talking', 'Current Joys New Flesh', 'Wilbur Soot Your New Boyfriend', 'Pink Guy Rice Balls', 'Korn Seen It All', 'Deftones Beware', 'Gorillaz People', 'mol$ GOLDEN WIND!', 'Ellefson Over Now', 'Limp Bizkit Break Stuff', 'Avatar God of Sick Dreams', 'Slipknot Vermilion, Pt. 2', 'Slipknot Psychosocial', "Skindred That's My Jam", 'Slipknot Surfacing', 'Deftones CMND/CTRL', 'Korn Open Up', 'Slipknot Red Flag', 'Trivium Catastrophist', 'P.O.D. Listening For The Silence', 'A Perfect Circle The Noose', 'Five Finger Death Punch Blue On Black', 'Killer Be Killed Inner Calm from Outer Storms', 'Helmet Milquetoast', 'System Of A Down Protect The Land', 'Roadrunner United Army of the Sun', 'The Glorious Sons S.O.S. (Sawed Off Shotgun)', 'System Of A Down U-Fig', 'Linkin Park Crawling', 'Mudvayne Happy?', "Corey Taylor From Can to Can't", 'Slipknot Dead Memories', 'Metallica Whiplash - Remastered', 'Slipknot Orphan', 'Korn Right Now', 'Mastodon Orion', 'System Of A Down Peephole', 'System Of A Down Aerials', 'System Of A Down Question!', 'Stone Sour Song #3', 'Korn Got the Life', 'Lemon Demon Action Movie Hero Boy', 'Rise Against Give It All', 'Metallica Enter Sandman', 'Linkin Park In the End (Demo) - LPU Rarities', 'Korn Make Me Bad', 'System Of A Down Toxicity', 'Puscifer Momma Sed', 'System Of A Down Hypnotize', 'Slipknot All Hope Is Gone', 'Slipknot Snuff', 'Korn Thoughtless', 'Mick Gordon Bfg Division', 'Billie Eilish Therefore I Am', 'Billie Eilish lovely (with Khalid)', 'Shotgun Willy Wendy', 'Shotgun Willy Cheat Codes for Hoes', "MC Virgins Bumpin'", 'Shotgun Willy Oreo', 'MC Virgins Trap Anthem', 'MC Virgins Anime Thighs', 'Matt Maltese As the World Caves In', 'Matt Maltese madhouse', 'Verzache Needs', 'datfootdive She Said, "Don\'t Make Others Suffer For Your Personal Hatred."', 'Oliver Tree Bury Me Alive', 'Matt Maltese Vacant in the 21st Century', 'Matt Maltese Krystal', 'Matt Maltese Jupiter', 'Matt Maltese Rom-Com Gone Wrong', 'Beach House Space Song', 'Jack Stauber Buttercup', 'Cults Always Forever', 'Mac DeMarco Chamber Of Reflection', 'Foo Fighters My Hero', 'My Chemical Romance Teenagers', 'Anberlin The Feel Good Drag', 'All Time Low Dear Maria, Count Me In', 'Panic! At The Disco I Write Sins Not Tragedies']]]
sad lofi fruits 🥺 lofi covers to relax, sleep, heal broken people
rain fruits music ⛈ rain sounds, relaxing nature thunder, white noise
favourite favourite songs
Lemon Demon Action Movie Hero Boy
ON_CONVERSATION_TURN_FINISHED:
{"with_follow_on_turn": false}
[70d98370] mp4 demux: Fragment sequence discontinuity detected 1 != 0
Yeah that's a "few" songs...
I also realised that GassistPi doesn't auto launch on boot even though I set it to
This is a free module, so in order to prevent any abuse, I have rate limited the number of songs that can be parsed.
After restart, run this: journalctl -u gassistpi.service -f
Share the terminal contents.
This made an infinitely looping error, I shall only show two but it just repeats a indefinitely.
-- Journal begins at Sat 2021-08-07 04:58:19 BST. --
Mar 22 12:57:25 raspberrypi python[1239]: File "/home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py", line 101 in __init__
Mar 22 12:57:25 raspberrypi python[1239]: File "/home/pi/GassistPi/src/main.py", line 1071 in main
Mar 22 12:57:25 raspberrypi python[1239]: File "/home/pi/GassistPi/src/main.py", line 1105 in <module>
Mar 22 12:57:25 raspberrypi systemd[1]: gassistpi.service: Main process exited, code=killed, status=6/ABRT
Mar 22 12:57:25 raspberrypi systemd[1]: gassistpi.service: Failed with result 'signal'.
Mar 22 12:57:25 raspberrypi systemd[1]: gassistpi.service: Consumed 2.990s CPU time.
Mar 22 12:57:25 raspberrypi systemd[1]: gassistpi.service: Scheduled restart job, restart counter is at 8.
Mar 22 12:57:25 raspberrypi systemd[1]: Stopped Google Assistant-Voice.
Mar 22 12:57:25 raspberrypi systemd[1]: gassistpi.service: Consumed 2.990s CPU time.
Mar 22 12:57:25 raspberrypi systemd[1]: Started Google Assistant-Voice.
Mar 22 12:57:27 raspberrypi python[1260]: [02b9ec60] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 12:57:27 raspberrypi python[1260]: [02bae140] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 12:57:28 raspberrypi python[1260]: USB-MIC-JACK
Mar 22 12:57:28 raspberrypi python[1260]: Initializing GPIOs 5 and 6 for assistant activity indication
Mar 22 12:57:28 raspberrypi sudo[1281]: pi : PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/rm /tmp/GassistPi.log
Mar 22 12:57:28 raspberrypi sudo[1281]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Mar 22 12:57:28 raspberrypi sudo[1281]: pam_unix(sudo:session): session closed for user root
Mar 22 12:57:28 raspberrypi python[1260]: /home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py:90: DeprecationWarning: Google Assistant Library for Python is deprecated
Mar 22 12:57:28 raspberrypi python[1260]: warnings.warn('Google Assistant Library for Python is deprecated', DeprecationWarning)
Mar 22 12:57:28 raspberrypi python[1260]: [FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Mar 22 12:57:28 raspberrypi python[1260]: Fatal Python error: Aborted
Mar 22 12:57:28 raspberrypi python[1260]: Current thread 0xb6f66980 (most recent call first):
Mar 22 12:57:28 raspberrypi python[1260]: File "/home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py", line 101 in __init__
Mar 22 12:57:28 raspberrypi python[1260]: File "/home/pi/GassistPi/src/main.py", line 1071 in main
Mar 22 12:57:28 raspberrypi python[1260]: File "/home/pi/GassistPi/src/main.py", line 1105 in <module>
Mar 22 12:57:28 raspberrypi systemd[1]: gassistpi.service: Main process exited, code=killed, status=6/ABRT
Mar 22 12:57:28 raspberrypi systemd[1]: gassistpi.service: Failed with result 'signal'.
Mar 22 12:57:28 raspberrypi systemd[1]: gassistpi.service: Consumed 3.081s CPU time.
Mar 22 12:57:28 raspberrypi systemd[1]: gassistpi.service: Scheduled restart job, restart counter is at 9.
Mar 22 12:57:28 raspberrypi systemd[1]: Stopped Google Assistant-Voice.
Mar 22 12:57:28 raspberrypi systemd[1]: gassistpi.service: Consumed 3.081s CPU time.
Mar 22 12:57:28 raspberrypi systemd[1]: Started Google Assistant-Voice.
Mar 22 12:57:31 raspberrypi python[1284]: [0175ac60] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 12:57:31 raspberrypi python[1284]: [0176a140] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 12:57:32 raspberrypi python[1284]: USB-MIC-JACK
Mar 22 12:57:32 raspberrypi python[1284]: Initializing GPIOs 5 and 6 for assistant activity indication
Mar 22 12:57:32 raspberrypi sudo[1302]: pi : PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/rm /tmp/GassistPi.log
Mar 22 12:57:32 raspberrypi sudo[1302]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Mar 22 12:57:32 raspberrypi sudo[1302]: pam_unix(sudo:session): session closed for user root
Mar 22 12:57:32 raspberrypi python[1284]: /home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py:90: DeprecationWarning: Google Assistant Library for Python is deprecated
Mar 22 12:57:32 raspberrypi python[1284]: warnings.warn('Google Assistant Library for Python is deprecated', DeprecationWarning)
Mar 22 12:57:32 raspberrypi python[1284]: [FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Mar 22 12:57:32 raspberrypi python[1284]: Fatal Python error: Aborted
Mar 22 12:57:32 raspberrypi python[1284]: Current thread 0xb6fcc980 (most recent call first):
What is your Audio IN and OUT device? Share the o/p of:
sudo nano /home/pi/.asoundrc
sudo nano /etc/asound.conf
There's nothing in /home/pi/.asoundrc or /etc/asound.conf
I had to butcher some stuff because I am a Audio jack and usb mic user but the script in the guide had some errors that I couldn't solve, I did initially have this in /home/pi/.asoundrc but it seems to have been removed.
pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw:2,0"
}
}
pcm.speaker {
type plug
slave {
pcm "hw:1,0"
}
}
This is the error I get.
pi@raspberrypi:~ $ sudo chmod +x ./GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
pi@raspberrypi:~ $ sudo ./GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
amixer: Cannot find the given element from control default
The speaker test still works and everything else when launching the assistant manually works perfectly fine, no issues with the mic or speaker.
Open the usb-mic-onboard-jack.sh
script and comment out the line:
https://github.com/shivasiddharth/GassistPi/blob/cd416148e46a661d767c371814d398f17bccb460/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh#L31
Re run the script using:
sudo ./GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
Before restarting run speaker-test
in terminal and then left click on the volume icon on the menu bar and select the IN and OUT device.
I have done that and restarted, still no launch on boot however, I also didn't get an error and it said it installed
Do you have something in:
sudo nano /home/pi/.asoundrc
sudo nano /etc/asound.conf
??
What is thejournalctl -u gassistpi.service -f
saying?
Still got nothing in /home/pi/.asoundrc but /etc/asound.conf now has this in it:
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"
}
}
and the output for journalctl -u gassistpi.service -f is the same as before
-- Journal begins at Sat 2021-08-07 04:58:19 BST. --
Mar 22 14:40:13 raspberrypi python[3727]: File "/home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py", line 101 in __init__
Mar 22 14:40:13 raspberrypi python[3727]: File "/home/pi/GassistPi/src/main.py", line 1071 in main
Mar 22 14:40:13 raspberrypi python[3727]: File "/home/pi/GassistPi/src/main.py", line 1105 in <module>
Mar 22 14:40:14 raspberrypi systemd[1]: gassistpi.service: Main process exited, code=killed, status=6/ABRT
Mar 22 14:40:14 raspberrypi systemd[1]: gassistpi.service: Failed with result 'signal'.
Mar 22 14:40:14 raspberrypi systemd[1]: gassistpi.service: Consumed 3.122s CPU time.
Mar 22 14:40:14 raspberrypi systemd[1]: gassistpi.service: Scheduled restart job, restart counter is at 118.
Mar 22 14:40:14 raspberrypi systemd[1]: Stopped Google Assistant-Voice.
Mar 22 14:40:14 raspberrypi systemd[1]: gassistpi.service: Consumed 3.122s CPU time.
Mar 22 14:40:14 raspberrypi systemd[1]: Started Google Assistant-Voice.
Mar 22 14:40:16 raspberrypi python[3748]: [02b45c60] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 14:40:16 raspberrypi python[3748]: [02b6d338] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 14:40:17 raspberrypi python[3748]: USB-MIC-JACK
Mar 22 14:40:17 raspberrypi python[3748]: Initializing GPIOs 5 and 6 for assistant activity indication
Mar 22 14:40:17 raspberrypi sudo[3767]: pi : PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/rm /tmp/GassistPi.log
Mar 22 14:40:17 raspberrypi sudo[3767]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Mar 22 14:40:17 raspberrypi sudo[3767]: pam_unix(sudo:session): session closed for user root
Mar 22 14:40:17 raspberrypi python[3748]: /home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py:90: DeprecationWarning: Google Assistant Library for Python is deprecated
Mar 22 14:40:17 raspberrypi python[3748]: warnings.warn('Google Assistant Library for Python is deprecated', DeprecationWarning)
Mar 22 14:40:17 raspberrypi python[3748]: ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
Mar 22 14:40:17 raspberrypi python[3748]: [FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Mar 22 14:40:17 raspberrypi python[3748]: Fatal Python error: Aborted
Mar 22 14:40:17 raspberrypi python[3748]: Current thread 0xb6fd9980 (most recent call first):
Mar 22 14:40:17 raspberrypi python[3748]: File "/home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py", line 101 in __init__
Mar 22 14:40:17 raspberrypi python[3748]: File "/home/pi/GassistPi/src/main.py", line 1071 in main
Mar 22 14:40:17 raspberrypi python[3748]: File "/home/pi/GassistPi/src/main.py", line 1105 in <module>
Mar 22 14:40:17 raspberrypi systemd[1]: gassistpi.service: Main process exited, code=killed, status=6/ABRT
Mar 22 14:40:17 raspberrypi systemd[1]: gassistpi.service: Failed with result 'signal'.
Mar 22 14:40:17 raspberrypi systemd[1]: gassistpi.service: Consumed 2.964s CPU time.
Mar 22 14:40:17 raspberrypi systemd[1]: gassistpi.service: Scheduled restart job, restart counter is at 119.
Mar 22 14:40:17 raspberrypi systemd[1]: Stopped Google Assistant-Voice.
Mar 22 14:40:17 raspberrypi systemd[1]: gassistpi.service: Consumed 2.964s CPU time.
Mar 22 14:40:17 raspberrypi systemd[1]: Started Google Assistant-Voice.
Mar 22 14:40:19 raspberrypi python[3770]: [01141c60] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 14:40:19 raspberrypi python[3770]: [01169338] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Mar 22 14:40:20 raspberrypi python[3770]: USB-MIC-JACK
Mar 22 14:40:20 raspberrypi python[3770]: Initializing GPIOs 5 and 6 for assistant activity indication
Mar 22 14:40:20 raspberrypi sudo[3788]: pi : PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/rm /tmp/GassistPi.log
Mar 22 14:40:20 raspberrypi sudo[3788]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Mar 22 14:40:20 raspberrypi sudo[3788]: pam_unix(sudo:session): session closed for user root
Mar 22 14:40:20 raspberrypi python[3770]: /home/pi/env/lib/python3.9/site-packages/google/assistant/library/assistant.py:90: DeprecationWarning: Google Assistant Library for Python is deprecated
Mar 22 14:40:20 raspberrypi python[3770]: warnings.warn('Google Assistant Library for Python is deprecated', DeprecationWarning)
Mar 22 14:40:20 raspberrypi python[3770]: ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
Mar 22 14:40:20 raspberrypi python[3770]: [FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Mar 22 14:40:20 raspberrypi python[3770]: Fatal Python error: Aborted
Mar 22 14:40:20 raspberrypi python[3770]: Current thread 0xb6fa4980 (most recent call first):
Give me the o/p of:
aplay -l
arecord -l
Here you go.
pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: Device [(LCS) USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Are you using https://static.cytron.io/image/cache/catalog/products/USB-MINI-MIC/Mini%20USB%20(3)-800x800.JPG this kind of mic?
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 ?
Main
Board and OS details:
Open a terminal and run
Describe the bug:
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?
Yes if I have reset the spotify settings in config.yaml to default
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
Paste the command below, that crashed the assistant
Paste the contents of the terminal below
I get no terminal output until I press Ctrl+C