Dockerfile Dockerfile:
1 2 FROM ubuntu:latest RUN touch test Dockerfile is good to maintenance the build image (rather than docker commit by a container)
Build docker Build docker: on the directory for the project (with Dockerfile),
1 docker build . 1 2 3 4 5 6 7 8 9 10 11 12 % docker build . [+] Building 0.7s (6/6) FINISHED => [internal] load build definition from Dockerfile 0.
Environment 1 2 3 4 5 6 7 8 9 10 11 12 $ uname -a Linux rpi4 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye $ julius --version JuliusLib rev.4.6 (fast) Prioritize USB microphone Check sound device
1 2 3 4 5 $ cat /proc/asound/modules 0 snd_bcm2835 1 vc4 2 snd_usb_audio 3 vc4 Prioritize USB Mic
Environment 1 2 3 4 5 6 7 8 9 $ uname -a Linux rpi4 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye Installation Install dependencies.
1 sudo apt-get install build-essential zlib1g-dev libsdl2-dev libasound2-dev In your any directory on Raspberry pi, make a directory (in my case, julius-speech)
I needed to test the recording quality of USB microphones for attaching it to the voice recognition system.
Product spec
# (in picture): Maker Product Product Spec Price 1: 共立 MI-305 USBマイク Sensitivity:-67 dBV/pBar,-47dBV/Pascal +/-4dB, Microphone frequency range:100-16kHz 500-1000JPY 2: BUFFALO BSWHD06M (No description about microphone) ~1800JPY 3: Logitech B910 HD Webcam (No description about microphone) ~8000JPY 4: Jabra Jabra Speak 510 UC Microphone frequency range: 150-6.
1 2 sudo apt-get upgrade meson meson --version output
1 0.56.2 Get the latest version of meson from github.
1 2 3 4 5 6 7 8 9 10 11 12 cd ~/repo git clone https://github.com/mesonbuild/meson.git cd ~/repo/meson # change the path for the originally installed version. sudo mv /usr/bin/meson /usr/bin/meson-0.56.2 # Link the downloaded version fron github sudo ln -s /home/tato/repo/meson/meson.py /usr/bin/meson meson --version output
For enabling text to speech on Raspberry Pi, I setup Voicevox on Raspberry Pi4. I followed instruction on github|voicevox_core.
Install Voicevox-core downloader As my Rpi 4 is on aarch64(the 64-bit extension of the ARM architecture family), I installed the latest binary with arm64 (voicevox_core-linux-arm64-cpu-0.14.4.zip).
1 2 % arch aarch64 Install Voicevox-core downloader.
1 2 3 4 binary=download-linux-arm64 curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/${binary} -o download chmod +x download ./download Output of .