William got the idea for this project after first playing with the Internet Radio Linking Project, a system which uses VoIP technologies to link radio networks over the internet. Already having an IRLP node, it seemed only natural to make it into a gateway to the wider internet through integration with Google Assistant.
Google Assistant amateur radio simplex/repeater prototype
https://www.youtube.com/watch?time_continue=143&v=jE_Ohi2nqIY&feature=men_title
Early work involved activating the assistant via DTMF tones, but William didn’t stop there – through the use of Picovoice, it became possible to use the system with the custom wakeword “Bumblebee”.
Hackaday Article - https://hackaday.com/2019/01/05/google-assistant-now-available-on-ham-radio/
Dan VE4DRK and myself visited VE4WSC this morning and put the first box into production. If you're around Winnipeg, Canada give it a try on 147.570 MHz simplex with 127.3 CTCSS. Press A or 0 and unkey to get the Assistant. Press B for no prompt. Press C to start conversational mode - you can keep having a PTT conversation with the Assistant for a maximum of 120s (2min).
VE4CNR repeater, 146.76-, IRLP 1504 is our second station setup. New IRLP box with SSD and full duplex Google Assistant support. If you're around Winnipeg, Canada give it a try.
When you build your install, here's the code you need to modify to key the transmitter: self.conversation_stream.stop_recording() os.system('/home/irlp/bin/key') time.sleep(0.5) self.conversation_stream.start_playback() logging.info('Playing assistant response.')
And here's the code change to unkey the transmitter: os.system('/home/irlp/bin/unkey') logging.info('Finished playing assistant response.')
And don't forget to break the keyboard loop in the PTT example, with: if wait_for_user_trigger: # click.pause(info='Press Enter to send a new request...') continue_conversation = assistant.assist() break
And some example custom_decode shell script to wrap it up, along with prompt/tone: #!/bin/bash # Google Assistant Environment cd /home/irlp/ source env/bin/activate # Play Acknowledgement cd /home/irlp/google-assistant/ amixer -q sset 'Line Out' xx% /home/irlp/bin/key /bin/sleep 0.5 /usr/bin/aplay /home/irlp/google-assistant/google-assistant-prompt.wav /home/irlp/bin/unkey alsactl restore # Google Assistant Push-to-talk cd /home/irlp/ amixer -q sset 'Line Out' xx% timeout 120s python -m googlesamples.assistant.grpc.pushtotalk_irlp --project-id YOUR_PROJECT_ID_GOES_HERE --device-model-id YOUR_DEVICE_MODEL_ID_GOES_HERE /home/irlp/bin/unkey alsactl restore
Early work involved activating the assistant via DTMF tones, but William didn’t stop there – through the use of Picovoice, it became possible to use the system with the custom wakeword “Bumblebee”.
Hackaday Article - https://hackaday.com/2019/01/05/google-assistant-now-available-on-ham-radio/
Dan VE4DRK and myself visited VE4WSC this morning and put the first box into production. If you're around Winnipeg, Canada give it a try on 147.570 MHz simplex with 127.3 CTCSS. Press A or 0 and unkey to get the Assistant. Press B for no prompt. Press C to start conversational mode - you can keep having a PTT conversation with the Assistant for a maximum of 120s (2min).
VE4CNR repeater, 146.76-, IRLP 1504 is our second station setup. New IRLP box with SSD and full duplex Google Assistant support. If you're around Winnipeg, Canada give it a try.
When you build your install, here's the code you need to modify to key the transmitter: self.conversation_stream.stop_recording() os.system('/home/irlp/bin/key') time.sleep(0.5) self.conversation_stream.start_playback() logging.info('Playing assistant response.')
And here's the code change to unkey the transmitter: os.system('/home/irlp/bin/unkey') logging.info('Finished playing assistant response.')
And don't forget to break the keyboard loop in the PTT example, with: if wait_for_user_trigger: # click.pause(info='Press Enter to send a new request...') continue_conversation = assistant.assist() break
And some example custom_decode shell script to wrap it up, along with prompt/tone: #!/bin/bash # Google Assistant Environment cd /home/irlp/ source env/bin/activate # Play Acknowledgement cd /home/irlp/google-assistant/ amixer -q sset 'Line Out' xx% /home/irlp/bin/key /bin/sleep 0.5 /usr/bin/aplay /home/irlp/google-assistant/google-assistant-prompt.wav /home/irlp/bin/unkey alsactl restore # Google Assistant Push-to-talk cd /home/irlp/ amixer -q sset 'Line Out' xx% timeout 120s python -m googlesamples.assistant.grpc.pushtotalk_irlp --project-id YOUR_PROJECT_ID_GOES_HERE --device-model-id YOUR_DEVICE_MODEL_ID_GOES_HERE /home/irlp/bin/unkey alsactl restore
No comments:
Post a Comment
Digital Ham Radio / Amateur Radio
DigitalHamRADIO@groups.io
https://groups.io/g/DigitalHamRADIO