allaie le slender!

This commit is contained in:
2025-08-29 09:17:18 +02:00
parent 594645246c
commit c87182a3fb
9 changed files with 90 additions and 0 deletions

25
install_slender.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# This script will create a virtual microphone for PulseAudio to use and set it
# as the default device.
# Load the "module-pipe-source" module to read audio data from a FIFO special
# file.
echo "Creating virtual microphone."
pactl load-module module-pipe-source source_name=virtmic file=/home/faquin/audioFiles/virtmic format=s16le rate=16000 channels=1
# Set the virtmic as the default source device.
echo "Set the virtual microphone as the default device."
pactl set-default-source virtmic
# Create a file that will set the default source device to virtmic for all
# PulseAudio client applications.
echo "default-source = virtmic" > /home/faquin/.config/pulse/client.conf
# Write the audio file to the named pipe virtmic. This will block until the
# named pipe is read.
echo "Writing audio file to virtual microphone."
#while true; do
#cat audioFile0.raw > /home/faquin/audioFiles/virtmic
#done