Skip to content

Instantly share code, notes, and snippets.

@Astro36
Last active November 5, 2019 15:30
Show Gist options
  • Save Astro36/52afcdc1e26e1dde5b70d24bedca3b69 to your computer and use it in GitHub Desktop.
Save Astro36/52afcdc1e26e1dde5b70d24bedca3b69 to your computer and use it in GitHub Desktop.
How to start Raspberry Pi

How to start Raspberry Pi

1. Install Raspbian at Raspberry Pi

Download Raspbian

Download balenaEtcher

2. Connect to Raspberry Pi

$ ssh pi@192.168.137.99
The authenticity of host '192.168.137.99 (192.168.137.99)' can't be established.
ECDSA key fingerprint is SHA256:wsPmcMqecG1XaXB3lNpsfqS4I98DLfAIUf+dGejFSI8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.137.99' (ECDSA) to the list of known hosts.
pi@192.168.137.99's password:
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov  5 08:48:54 2019 from 192.168.137.18
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov  5 08:48:54 2019 from 192.168.137.18

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

3. Change Password

$ passwd
Changing password for pi.
Current password:
New password:
Retype new password:

Report

for ICE1002 Final Exam

1. Install pip

sudo apt install python3-pip

2. Install python modules

  1. google-cloud-*
pip3 install google-cloud-speech google-cloud-texttospeech
  1. pyaudio
sudo apt install portaudio19-dev
pip3 install pyaudio

3. Upload required files

scp ./streaming.py ./synthesize_text.py ./key.json pi@192.168.137.99:/home/pi

4. Check created files

scp pi@192.168.137.99:/home/pi/output.mp3 ./check.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment