mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
raaahhh
This commit is contained in:
+4
-4
@@ -1,14 +1,14 @@
|
||||
# Use the Google Voice HAT soundcard as the primary device by name (more robust than numeric card index)
|
||||
# Use the Google Voice HAT soundcard as the primary device by name (card id is "sndrpigooglevoi")
|
||||
options snd_rpi_googlevoicehat_soundcard index=0
|
||||
|
||||
# Simple defaults: direct playback/capture on the voice HAT
|
||||
pcm.!default {
|
||||
type asym
|
||||
playback.pcm "plughw:sndrpigooglevoicehat_soundcar,0"
|
||||
capture.pcm "plughw:sndrpigooglevoicehat_soundcar,0"
|
||||
playback.pcm "plughw:sndrpigooglevoi,0"
|
||||
capture.pcm "plughw:sndrpigooglevoi,0"
|
||||
}
|
||||
|
||||
ctl.!default {
|
||||
type hw
|
||||
card sndrpigooglevoicehat_soundcar
|
||||
card sndrpigooglevoi
|
||||
}
|
||||
|
||||
@@ -19,14 +19,14 @@ VIDEO_HEIGHT="${VIDEO_HEIGHT:-1080}"
|
||||
VIDEO_FPS="${VIDEO_FPS:-30}"
|
||||
VIDEO_BITRATE="${VIDEO_BITRATE:-3000000}"
|
||||
AUDIO_ENABLE="${AUDIO_ENABLE:-0}"
|
||||
AUDIO_DEVICE="${AUDIO_DEVICE:-plughw:0,0}"
|
||||
AUDIO_DEVICE="${AUDIO_DEVICE:-plughw:sndrpigooglevoi,0}"
|
||||
AUDIO_RATE="${AUDIO_RATE:-16000}"
|
||||
AUDIO_CHANNELS="${AUDIO_CHANNELS:-1}"
|
||||
AUDIO_BITRATE="${AUDIO_BITRATE:-64000}"
|
||||
|
||||
# Normalize device if env still says "default"
|
||||
if [[ "${AUDIO_DEVICE}" == "default" ]]; then
|
||||
AUDIO_DEVICE="plughw:sndrpigooglevoicehat_soundcar,0"
|
||||
AUDIO_DEVICE="plughw:sndrpigooglevoi,0"
|
||||
fi
|
||||
# Flip the camera 180deg (supported by rpicam-vid/libcamera-vid)
|
||||
FLIP_ARGS=(--rotation 180)
|
||||
|
||||
@@ -205,7 +205,7 @@ VIDEO_HEIGHT=720
|
||||
VIDEO_FPS=30
|
||||
VIDEO_BITRATE=3000000
|
||||
AUDIO_ENABLE=1
|
||||
AUDIO_DEVICE=plughw:sndrpigooglevoicehat_soundcar,0
|
||||
AUDIO_DEVICE=plughw:sndrpigooglevoi,0
|
||||
AUDIO_RATE=16000
|
||||
AUDIO_CHANNELS=1
|
||||
AUDIO_BITRATE=64000
|
||||
|
||||
+1
-1
@@ -142,7 +142,7 @@ func LoadConfig(path string) (*Config, error) {
|
||||
},
|
||||
Audio: AudioConfig{
|
||||
CaptureEnabled: true,
|
||||
CaptureDevice: "plughw:0,0",
|
||||
CaptureDevice: "plughw:sndrpigooglevoi,0",
|
||||
SampleRate: 16000,
|
||||
Channels: 1,
|
||||
Bitrate: 64000,
|
||||
|
||||
@@ -39,7 +39,7 @@ cameraServo:
|
||||
allowRawPulse: false
|
||||
audio:
|
||||
captureEnabled: true
|
||||
captureDevice: plughw:0,0
|
||||
captureDevice: plughw:sndrpigooglevoi,0
|
||||
sampleRate: 16000
|
||||
channels: 1
|
||||
bitrate: 64000
|
||||
|
||||
Reference in New Issue
Block a user