Welcome to Rider Pi Robot repository
2. Car recording audio
Car recording audio
1. Experimental purpose
Car recording audio.
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/2.Record audio and run car recode voice.ipynb.
3. Experimental phenomenon
After running the code, the car will record 5 seconds of sound and save it in the file /home/pi/xgoMusic. The name is myrecord.wav

4. Main source code analysis
xgoAudioRecord(filename="record",seconds=5)
| Parameter name | Format | Input range | Description |
|---|---|---|---|
| filename (optional) defaults to "recode" | string | / | The file name of the recorded audio will automatically add the extension wav, and the recorded file path is /home/pi/xgoMusic |
| seconds (optional) defaults to 5 | number | / | The length of the recorded file (seconds) |