Install VoiceVox on Raspberry Pi

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 .

Use Environemt variable-on-azure-functions

After creating a local Azure Functions environment and local Functions project on Mac(M1), I create Azure resources and deploy the Functions. Environment settings python-on-rosetta2-m1mac MacOS Monterey 12.3, M1 Apple silicon Rosetta 2 1 2 % uname -a Darwin xxx 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000 x86_64 pyenv 2.3.18 Python 3.10.0 Homebrew 4.0.20 azure-functions-core-tools@4/4.0.5198 Local setting Add secret and its value in local.

Deploy Functions to Azure

After creating a local Azure Functions environment and local Functions project on Mac(M1), I create Azure resources and deploy the Functions. Environment settings python-on-rosetta2-m1mac MacOS Monterey 12.3, M1 Apple silicon Rosetta 2 1 2 % uname -a Darwin xxx 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000 x86_64 pyenv 2.3.18 Python 3.10.0 Homebrew 4.0.20 azure-functions-core-tools@4/4.0.5198 Create a local Azure Functions project create-local-azure-functions-project

Create a local Azure Functions project

Environment settings python-on-rosetta2-m1mac MacOS Monterey 12.3, M1 Apple silicon Rosetta 2 1 2 % uname -a Darwin xxx 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000 x86_64 pyenv 2.3.18 Python 3.9.16 Homebrew 4.0.20 azure-functions-core-tools@4/4.0.5198 Create Functions project on local environment Ref: Functions プロジェクトをローカルで作成する Create virtual environment At your project directory on Rosetta2 (x86_64) emulator environment, create python virtual environment.

Install python on Rosetta 2 on M1 Mac

Azure Functions for Python language supports up to Python 3.9(not >= 3.10 as of Jun 3 2023). Also, Azure Functions local environment does not support Arm64 architecture on Mac, but supports i386 (Intel) architecture on Mac. I managed to install python 3.9 via pyenv on Rosetta2(x86_64) with configuring dependencies with separate environments from the default arm64 one. Environment MacOS Monterey 12.3, M1 Apple silicon Rosetta 2 1 2 % uname -a Darwin xxx 21.

Install python on Rosetta 2 on M1 Mac

Azure Functions for Python language supports up to Python 3.9(not >= 3.10 as of Jun 3 2023). Also, Azure Functions local environment does not support Arm64 architecture on Mac, but supports i386 (Intel) architecture on Mac. I managed to install python 3.9 via pyenv on Rosetta2(x86_64) with configuring dependencies with separate environments from the default arm64 one. azure/python-on-rosetta2-m1mac