sayit
v1.6
Sayit是宣揚書面文本的跨平台命令行工具。您可以使用它來創建文本文件的錄音或用外語改善發音。
Sayit使用Azure認知服務作為後端來保證最佳音頻質量,因此它需要對Azure進行訂閱,您可以在此處免費獲得。截至2021年,Azure認知服務的免費層次包括每月5個文本到語音小時,通常足以個人使用。
您可以在發布部分下載Sayit。 Sayit當前是作為獨立的.NET可執行文件分發的(這意味著您不需要安裝.NET運行時使用它)和依賴框架的.NET可執行文件。
首次使用時,您需要運行設置嚮導( ./sayit --setup )並輸入Azure認知服務資源的配置參數,例如訂閱密鑰(您可以在Azure Portal中找到)和區域標識符(請參見此處)。 Sayit將這些參數存儲在當前用戶的配置文件夾中(例如~/.config/ in Linux)作為應用程序設置XML文件。
$ ./sayit --help
USAGE: sayit [--help] [--version] [--setup] [--list-voices] [--list-formats]
[--voice <voice>] [--format <format>] [--output <output>] [<input>]
INPUT:
<input> the text to be pronounced
(if missing, sayit will try to read it from stdin)
OPTIONS:
--version print sayit version
--setup setup the configuration file
--list-voices, -lv list the available voice shorthands
with their corresponding voice ids
--list-formats, -lf list the available output format shorthands
with their corresponding output format ids
--voice, -v <voice> the voice shorthand
--format, -f <format> the audio output format shorthand
--output, -o <output> the path of the output file
--help display this list of options.
Sayit支持這些設置:
audio-16khz-32kbitrate-mono-mp3 , audio-16khz-64kbitrate-mono-mp3 , audio-16khz-128kbitrate-mono-mp3 , audio-24khz-96kbitrate-mono-mp3 , audio-24khz-160kbitrate-mono-mp3 , audio-24khz-48kbitrate-mono-mp3 , riff-8khz-16bit-mono-pcm , riff-16khz-16bit-mono-pcm , riff-24khz-16bit-mono-pcm 。NB:根據其區域,您的Azure認知服務資源可能不支持某些語言和輸出格式(請參閱此處)。
NB:支持聲音和格式的選擇是隨機的。當然,我歡迎建議和貢獻。