mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-18 12:42:15 -05:00
@@ -1,8 +1,10 @@
|
|||||||
- id: alsa
|
- id: alsa
|
||||||
name: ALSA microphone
|
name: ALSA microphone (generic)
|
||||||
description: Uses the configured audio input device through roverd's ALSA conversion route.
|
description: Uses the configured audio input device through roverd's ALSA conversion route.
|
||||||
setup: |
|
setup: |
|
||||||
|
if ! command -v ffmpeg >/dev/null || ! command -v arecord >/dev/null; then
|
||||||
apt-get update && apt-get install -y ffmpeg alsa-utils
|
apt-get update && apt-get install -y ffmpeg alsa-utils
|
||||||
|
fi
|
||||||
run: |
|
run: |
|
||||||
sample_rate=48000
|
sample_rate=48000
|
||||||
channels=2
|
channels=2
|
||||||
@@ -14,7 +16,7 @@
|
|||||||
-application audio -frame_duration 20 -compression_level 0 \
|
-application audio -frame_duration 20 -compression_level 0 \
|
||||||
-flush_packets 1 -muxdelay 0 -muxpreload 0 -f rtsp -rtsp_transport tcp "$ROVER_AUDIO_PUBLISH_URL"
|
-flush_packets 1 -muxdelay 0 -muxpreload 0 -f rtsp -rtsp_transport tcp "$ROVER_AUDIO_PUBLISH_URL"
|
||||||
- id: aiy
|
- id: aiy
|
||||||
name: Google AIY Voice HAT microphone
|
name: Google AIY Voice HAT microphone (raspberry pi)
|
||||||
description: HAT capture with S32_LE input, 20 dB microphone boost, and low-latency Opus settings. Reboot once after first enabling its hardware.
|
description: HAT capture with S32_LE input, 20 dB microphone boost, and low-latency Opus settings. Reboot once after first enabling its hardware.
|
||||||
setup: |
|
setup: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -33,7 +35,9 @@
|
|||||||
if [[ "$changed" == 1 ]]; then
|
if [[ "$changed" == 1 ]]; then
|
||||||
echo 'AIY hardware enabled. Reboot the host once before using this sound card.'
|
echo 'AIY hardware enabled. Reboot the host once before using this sound card.'
|
||||||
fi
|
fi
|
||||||
|
if ! command -v ffmpeg >/dev/null || ! command -v arecord >/dev/null; then
|
||||||
apt-get update && apt-get install -y ffmpeg alsa-utils
|
apt-get update && apt-get install -y ffmpeg alsa-utils
|
||||||
|
fi
|
||||||
run: |
|
run: |
|
||||||
sample_rate=48000
|
sample_rate=48000
|
||||||
channels=2
|
channels=2
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
- id: alsa
|
- id: alsa
|
||||||
name: ALSA speaker
|
name: ALSA speaker (generic)
|
||||||
description: Uses the configured output alongside TTS and horn with independent volume controls.
|
description: Uses the configured output alongside TTS and horn with independent volume controls.
|
||||||
setup: |
|
setup: |
|
||||||
|
if ! command -v ffmpeg >/dev/null || ! command -v aplay >/dev/null; then
|
||||||
apt-get update && apt-get install -y ffmpeg alsa-utils
|
apt-get update && apt-get install -y ffmpeg alsa-utils
|
||||||
|
fi
|
||||||
run: |
|
run: |
|
||||||
normalize=true
|
normalize=true
|
||||||
normalize_filter='dynaudnorm=f=75:g=15:m=10:p=0.9,alimiter=limit=0.85:level=disabled'
|
normalize_filter='dynaudnorm=f=75:g=15:m=10:p=0.9,alimiter=limit=0.85:level=disabled'
|
||||||
@@ -13,7 +15,7 @@
|
|||||||
-vn "${filters[@]}" -ac 1 -ar 16000 -f s16le pipe:1 |
|
-vn "${filters[@]}" -ac 1 -ar 16000 -f s16le pipe:1 |
|
||||||
aplay -q -D "$ROVER_AUDIO_OUTPUT_DEVICE" -t raw -f S16_LE -r 16000 -c 1
|
aplay -q -D "$ROVER_AUDIO_OUTPUT_DEVICE" -t raw -f S16_LE -r 16000 -c 1
|
||||||
- id: aiy
|
- id: aiy
|
||||||
name: Google AIY Voice HAT speaker
|
name: Google AIY Voice HAT speaker (raspberry pi)
|
||||||
description: HAT playback with low-latency decoding and 16 kHz mono output through the configured audio route. Reboot once after initial setup.
|
description: HAT playback with low-latency decoding and 16 kHz mono output through the configured audio route. Reboot once after initial setup.
|
||||||
setup: |
|
setup: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -32,7 +34,9 @@
|
|||||||
if [[ "$changed" == 1 ]]; then
|
if [[ "$changed" == 1 ]]; then
|
||||||
echo 'AIY hardware enabled. Reboot the host once before using this sound card.'
|
echo 'AIY hardware enabled. Reboot the host once before using this sound card.'
|
||||||
fi
|
fi
|
||||||
|
if ! command -v ffmpeg >/dev/null || ! command -v aplay >/dev/null; then
|
||||||
apt-get update && apt-get install -y ffmpeg alsa-utils
|
apt-get update && apt-get install -y ffmpeg alsa-utils
|
||||||
|
fi
|
||||||
run: |
|
run: |
|
||||||
normalize=true
|
normalize=true
|
||||||
normalize_filter='dynaudnorm=f=75:g=15:m=10:p=0.9,alimiter=limit=0.85:level=disabled'
|
normalize_filter='dynaudnorm=f=75:g=15:m=10:p=0.9,alimiter=limit=0.85:level=disabled'
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
- id: v4l2
|
- id: v4l2
|
||||||
name: V4L2 camera
|
name: V4L2 camera (generic, NO hardware encoding, only use for testing...)
|
||||||
description: USB or other Linux V4L2 camera, encoded with software H.264.
|
description: USB or other Linux V4L2 camera, encoded with software H.264.
|
||||||
setup: |
|
setup: |
|
||||||
|
if ! command -v ffmpeg >/dev/null; then
|
||||||
apt-get update && apt-get install -y ffmpeg
|
apt-get update && apt-get install -y ffmpeg
|
||||||
|
fi
|
||||||
run: |
|
run: |
|
||||||
device=/dev/video0
|
device=/dev/video0
|
||||||
input_format=mjpeg
|
input_format=mjpeg
|
||||||
@@ -23,10 +25,12 @@
|
|||||||
-g "$fps" -keyint_min "$fps" -sc_threshold 0 -flush_packets 1 -muxdelay 0 -muxpreload 0 \
|
-g "$fps" -keyint_min "$fps" -sc_threshold 0 -flush_packets 1 -muxdelay 0 -muxpreload 0 \
|
||||||
-f rtsp -rtsp_transport tcp "$ROVER_VIDEO_PUBLISH_URL"
|
-f rtsp -rtsp_transport tcp "$ROVER_VIDEO_PUBLISH_URL"
|
||||||
- id: rpicam
|
- id: rpicam
|
||||||
name: Pi Zero 2 W Camera v2
|
name: Pi Zero 2 W Camera v2 (Carpet's Rovers)
|
||||||
description: Inverted Camera Module v2 on a Pi Zero 2 W, with H.264 republished through ffmpeg.
|
description: Inverted Camera Module v2 on a Pi Zero 2 W, with H.264 republished through ffmpeg.
|
||||||
setup: |
|
setup: |
|
||||||
|
if ! command -v ffmpeg >/dev/null || ! command -v rpicam-vid >/dev/null; then
|
||||||
apt-get update && apt-get install -y ffmpeg rpicam-apps
|
apt-get update && apt-get install -y ffmpeg rpicam-apps
|
||||||
|
fi
|
||||||
run: |
|
run: |
|
||||||
width=640
|
width=640
|
||||||
height=480
|
height=480
|
||||||
|
|||||||
Reference in New Issue
Block a user