Welcome to DOGZILLA-Lite repository
3. Play Audio
3. Play Audio
1. Purpose of the experiment
Play audio. Remember to turn up the volume!
2. Experimental path source code
Enter the dog's system, end the dog program, enter "ip (ip is the dog's ip):8888" in the browser, enter the password "yahboom"
and log in. Enter the path of cd ~/DOGZILLA_Lite_class/2.Base Control/03.Play audio and run dog_play_voice.ipynb .
3. Experimental Phenomenon
After running the code, the dog will play the file named myrecord.wav in the file /home/pi/xgoMusic

4. Main source code analysis
xgoSpeaker(filename)
| Parameter name | Format | Input range | illustrate |
|---|---|---|---|
| filename | String | / | The audio file extension is wav, and the path is /home/pi/xgoMusic |