Ubuntu Server 22.04 安裝微軟語(yǔ)音服務(wù)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 安裝語(yǔ)音CLIdotnet tool install --global Microsoft.CognitiveServices.Speech.CLIexport PATH="$PATH:/home/<yourname>/.dotnet/tools"
# 安裝 GStreamer, 語(yǔ)音識(shí)別依賴(lài)此庫(kù)將壓縮的語(yǔ)音轉(zhuǎn)換為原始的語(yǔ)音# 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 語(yǔ)音CLI依賴(lài)此項(xiàng)# 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
評(píng)論
圖片
表情
