Ubuntu Server 22.04 安装微软语音服务CLI
# 安装 .Net 6.0# https://learn.microsoft.com/zh-cn/dotnet/core/install/linux-ubuntu-2204sudo apt install dotnet-sdk-6.0sudo apt install aspnetcore-runtime-7.0
# 使用 .NET CLI 安装语音CLIdotnet tool install --global Microsoft.CognitiveServices.Speech.CLIexport PATH="$PATH:/home/<yourname>/.dotnet/tools"
# 安装 GStreamer, 语音识别依赖此库将压缩的语音转换为原始的语音# https://learn.microsoft.com/zh-cn/azure/ai-services/speech-service/how-to-use-codec-compressed-audio-input-streamssudo apt install libgstreamer1.0-0 \gstreamer1.0-plugins-base \gstreamer1.0-plugins-good \gstreamer1.0-plugins-bad \gstreamer1.0-plugins-ugly
# 安装 openssl 1.x 语音CLI依赖此项# https://learn.microsoft.com/en-us/azure/ai-services/speech-service/quickstarts/setup-platformwget https://www.openssl.org/source/openssl-1.1.1v.tar.gztar zxf openssl-1.1.1v.tar.gzcd openssl-1.1.1v./config --prefix=/usr/localmake -j $(nproc)sudo make install_sw install_ssldirssudo ldconfig -vexport SSL_CERT_DIR=/etc/ssl/certs
sudo apt updatesudo apt install build-essential libssl-dev ca-certificates libasound2 wget
# 使用spx help
评论
