Welcome to Rider Pi Robot repository
3. Car plays audio
3. Car plays audio
1. Experimental purpose
Car plays audio. Remember to turn up the volume!
2. Experimental path source code
Enter the car system, end the car program, enter "ip (ip is the car's ip): 8888" in the browser, enter the password "yahboom"
Then log in
Enter the path Rider-pi_class/2.Basic Control Ooperations/3.Play audio and run car play voice.ipynb.
3. Experimental phenomenon
After running the code, the car 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 | Description |
|---|---|---|---|
| filename | String | / | Audio file extension wav, path is /home/pi/xgoMusic |