UNPKG

win-balabolka-tts

Version:

使用Balabolka进行文字转换为语音

409 lines (259 loc) 15.8 kB
Balabolka (�������� ����������), ������ 1.81 �������� ����� (c) 2013-2023 ���� ������� ������ ����� �������� �������: http://www.cross-plus-a.com/bg/bconsole.htm �-����: crossa@list.ru ������: ��������� (Freeware) ����������� �������: Microsoft Windows XP/Vista/7/8/10/11 ����� ���: 4.0/5.0 Microsoft Speech Platform: 11.0 *** ��������� *** balcon [����� ...] *** ����� �� ��������� ��� *** -l ������� �� ������ ������� � ��������� �������. -g ������� �� ������ ������� � ������� ������� ����������. -f <�������_����> ������ ����� �� ������� ������� ����. ��������� ��� ���� �� ������� ������ �� ���� [-f] �����. -fl <���_��_����> Sets the name of the text file with the list of input files (one file name per line). ��������� ��� ���� �� ������� ������ �� ���� [-fl] �����. -w <������_����> ������ ����� �� �������� ���� � WAV ������. ��� ������� � ��������, �� ���� �������� ����� ����. �����, ������ �� ���� �������� �� ����. -n <���_��_�����> ������ ��� ���� �� ���� ��������� (����� �� ����� � ����������). ��� ������� �� � ��������, �� ���� ��������� ����� ������� �� ������������ � Windows. -id <�����������_��������> ������ ����������� ������������� (Language ID) �� �����. ������������ ������������� � �������� ���, ������� �� Microsoft (�������� "1026" ��� "0x0402" �� "���������", "1033" ��� "0x0409" �� "��������� - ���"). ���������� �� ������ ������ ���� ��� ������� ���������� ������������� �� ������� � �������. ��� ���� ��������� �� � ��������, ������ ������� � ����������� [-n] ��� ������ �� ������������ � Windows �� ���� ���������. �������� � ���������� ��������������, ���� �� ���� ������ �� ������� ��� �����: https://msdn.microsoft.com/en-us/library/cc233982.aspx -m ������� �� ������ ����������� �� �����. -b <����������� ��������> ������ ��������� ������� ���������� ������ ������� ������. �������� �� �������������� �� ������� ���������� � 0. -r <�����> Sets the audio output device by its name. -c �� ���� �� �������� ������ �� ���������. -t <�����> �� ���� ���� �� �� �������� ����� �� ��������� ���. ��������� ��� ���� �� ������� ������ �� ���� [-t] �����. -i �� ���� �� �������� ������ �� STDIN. -o SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������� ��������� ����� � STDOUT; ��� � �������� ���� �����, ������� [-w] ���� ����������. -s <�����������_��������> SAPI 4: ������ ��������� � ������ �� 0 �� 100 (���� �������� �� ������������). SAPI 5 � Microsoft Speech Platform: ������ ��������� � ������ �� -10 �� 10 (�� ������������ � 0). -p <�����������_��������> SAPI 4: ������ ���������� �� ����� � ������ �� 0 �� 100 (���� �������� �� ������������). SAPI 5 � Microsoft Speech Platform: ������ ���������� �� ����� � ������ �� -10 �� 10 (�� ������������ � 0). -v <�����������_��������> SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������ ������ �� ����� � ������ �� 0 �� 100 (�� ������������ � 100). -e <�����������_��������> ������ ��������� �� ������� ����� ����������� (� �����������). �� ������������ � 0. -a <�����������_��������> ������ ������� ����� �������� (� �����������). �� ������������ � 0. -d <���_��_����> �������� �� ������ �� �������� �� �������������� (*.BXD, *.DIC ��� *.REX). ��������� ��� ���� �� ������� ������ �� ���� ����� [-d]. -k ���������� ��������� �� ����� ����� �� ������������ � ������� �� ���������. -ka ���������� ������� �� ������ ���������� � ������� �� ��������� ����� �� ���������� ����������. -pr Make pause or resume reading aloud by the active copy of the application. The action is the same as for the context menu item "Pause"/"Resume". -q ������ ������������ � ������. ���������� ���������� �� ������ ������ ������� ����� �� ������������ ��������� � �������� ��. -lrc SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������� LRC ����, ��� ����������� [-w] ��� [-o] �� ��������. -srt SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������� SRT ����, ��� ����������� [-w] ��� [-o] �� ��������. -vs <���_��_����> SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������ ����� �� �������� ������� ���� � ������, ��� ������� [-w] � �������. ������ � ������� �� ������, ����� ����������� �� ��������� ������ ����. SAPI �������� ������� �� 21 ������. ���� ������ � ������� �� ������������ ������ ��������� �� Disney. ������������ �� ������� ����� ����� � ���� ���� �� �� ������� �� ����, �� �� ������ �������� � ������� ������� ������. �������� � ���������� �� SAPI 5 ������: https://msdn.microsoft.com/en-us/library/ms720881(v=vs.85).aspx -sub ������� �� ���� ���������� ���� ��������. ����������� ���� �� � �������, ������ �� �������� ����������� [-i] ��� [-c]. -tray ��������� �� ������� �� ���������� � �������� �� �����������. ���� �� ��������� �� ������� ��������� �� ������������� ������. ��������� "����" � ������������ ���� ���� �� �� �������� �� ������� �� �������. -ln <�����������_��������> ������ ��� �� ��������� ���� ���� ������ �� ����. ������������ ������� �� "1". ���������� �� ������ ���� �� �� �������� �� �������� �� ������ �� ���� ��� (��������: "26-34"). ��������� ��� ���� �� ������� ������ �� ���� ����� [-ln]. -fr <����������� ��������> SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������ ��������� ������� ������� � ��� (8, 11, 12, 16, 22, 24, 32, 44, 48). ��� ������� �� � �������, �� �� �������� ���������� �� ������������ �� �������� ����. -bt <����������� ��������> SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������ ��������� ��������� �� ����� � ������ (8 ��� 16). ��� ������� �� � �������, �� �� �������� ���������� �� ������������ �� �������� ����. -ch <����������� ��������> SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������ ���� �� ��������� ������� ������ (1 ��� 2). ��� ������� �� � �������, �� �� �������� ���������� �� ������������ �� �������� ����. -dp Display progress information in a console window. -h ������� �� ������ ������� � ������������ ����� �� ��������� ���. --encoding <��������> ��� -enc <��������> ������ ���������� �� ������� ����� ("ansi", "utf8" ��� "unicode"). ���������� �� ������������ � "ansi". --silence-begin <�����������_��������> ��� -sb <�����������_��������> ������ ������������� �� �������� � �������� �� ����� ����� (� �����������). �� ������������ � 0. --silence-end <�����������_��������> ��� -se <�����������_��������> ������ ������������� �� �������� � ���� �� ����� ����� (� �����������). �� ������������ � 0. --lrc-length <�����������_��������> ������ ������������ ������� �� �������� � LRC ����� (� ���� �����). --lrc-fname <���_��_����> ������ ����� �� LRC �����. ����������� �� ��� �������, ������ � ������� ���������� [-o]. --lrc-enc <��������> ������ ���������� �� LRC ����� ("ansi", "utf8" ��� "unicode"). ���������� �� ������������ � "ansi". --lrc-offset <�����������_��������> ������ ��������� ���������� �� LRC ����� (� �����������). --lrc-artist <�����> ������ ID ���� �� LRC �����: ����������. --lrc-album <�����> ������ ID ���� �� LRC �����: �����. --lrc-title <�����> ������ ID ���� �� LRC �����: ��������. --lrc-author <�����> ������ ID ���� �� LRC �����: �����. --lrc-creator <�����> ������ ID ���� �� LRC �����: �������� �� LRC �����. --lrc-sent Inserts blank lines after sentences in the LRC file. --lrc-para Inserts blank lines after paragraphs in the LRC file. --srt-length <�����������_��������> ������ ������������ ������� �� �������� � SRT ����� (� ���� �����). --srt-fname <���_��_����> ������ ����� �� SRT �����. ����������� �� ��� �������, ������ � ������� ���������� [-o]. --srt-enc <��������> ������ ���������� �� SRT ����� ("ansi", "utf8" ��� "unicode"). ���������� �� ������������ � "ansi". --raw SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ��������� ����� ���� � � ����� PCM ������; ����� ������� �� �������� WAV ����������. ���� ��������� �� �������� � ���������� � ���������� [-o]. --ignore-length ��� -il SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: �������� ������������ ������� �� ����� � WAV ����������. ���� ��������� �� �������� � ���������� � ���������� [-o]. --sub-format <�����> ������ ������� �� ���������� ("srt", "lrc", "ssa", "ass", "smi" ��� "vtt"). ��� ����������� �� � �������, �������� �� ���� ��������� ���� ��������� ����������. --sub-fit ��� -sf SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ����������� ��������� ���������, �� �� �������� � ��������� ��������� �� ���������� (������ ���������� ���������� �������� � ����� ����). --sub-max <�����������_��������> ��� -sm <�����������_��������> SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: ������ ������������ ������� �� ����� � ������� �� -10 �� 10 (������ ���������� ���������� �������� � ����� ����). --delete-file ��� -df �������� ��������� ����, ������ �������� ���� ���������. ���� ��������� �� �������� � ���������� � ���������� [-f]. --ignore-square-brackets ��� -isb Ignore text in [square brackets]. --ignore-curly-brackets ��� -icb Ignore text in {curly brackets}. --ignore-angle-brackets ��� -iab Ignore text in <angle brackets>. --ignore-round-brackets ��� -irb Ignore text in (round brackets). --ignore-url ��� -iu Ignore URLs. --ignore-comments ��� -ic Ignore comments in text. Single-line comments start with // and continue until the end of the line. Multiline comments start with /* and end with */. --voice1-name <���_��_�����> SAPI 4: �� �� ��������. SAPI 5 � Microsoft Speech Platform: Sets the additional voice name to read foreign words in text (the part of the name will be enough). The option is used together with the option [--voice1-langid]. Other voices can be set by options [--voice2-name], [--voice3-name], etc. --voice1-langid <�������������_��_�����> Sets the language ID for foreign words in text. The option is used together with the option [--voice1-name]. The command line may contain more than one option [--voice1-langid]. Also an option may contain a comma-separated list of IDs. The list of supported language IDs is based on ISO 639-1 codes: am, ar, az, ba, bg, be, ca, cs, cu, cv, da, de, el, en, es, et, eu, fi, fil, fr, ja, he, hi, hr, hu, hy, it, gn, gu, ka, kk-Cyr, kk-Lat, kn, ko, ky, lo, lt, lv, mk, no, pl, pt, ro, ru, sk, sl, sr-Cyr, sr-Lat, sv, tg, th, tk, tr, tt, uk, zh. --voice1-rate <�����������_��������> Sets the rate for the additional voice in a range of -10 to 10 (the default is 0). --voice1-pitch <�����������_��������> Sets the pitch for the additional voice in a range of -10 to 10 (the default is 0). --voice1-volume <�����������_��������> Sets the volume for the additional voice in a range of 0 to 100 (the default is 100). --voice1-roman Use the default voice to read Roman numerals in text. If text with non-Latin characters contains Roman numerals, the application will not change a voice to read them. ��������: XIX ���, �������� II. --voice1-digit Use the default voice to read numbers in text. --voice1-length <�����������_��������> Set the minimal length of foreign text parts that will be read by the additional voice (in characters). *** ������� *** ��������� �� ���� � ��� VOICE.TXT, �������� ������ � ������������� �������: balcon -l > voice.txt ������� �� ���������������� �� ����� Microsoft Anna: balcon -n "Microsoft Anna" -m ������������ �� ������ �� BOOK.TXT � ��� � ��������� ���� BOOK.WAV: balcon -f "d:\Text\book.txt" -w "d:\Sound\book.wav" -n "Emma" ���������� �� ������ �� ���������, ��������� �� ������� �� �������� �� �������������� � ��������� �� ����: balcon -n "Callie" -c -d "d:\rex\rules.rex" -d "d:\dic\rules.dic" ��������� �� ���� �� ����� �� ��������� ��� � ������� ������� � ���� �� �����: balcon -n "Irina" -t "������� �� ���� �������� �����." -s -5 -v 70 ������������ �� ��������� �� ����� ����� �� ������������ � ������� �� ���������: balcon -k ������������ �� ����� �� STDIN � ���, ��������� ���� BOOK.WAV � ��������� �� BOOK.LRC: balcon -f "d:\Text\book.txt" -w "d:\Sound\book.wav" -lrc --lrc-length 80 --lrc-title "The Lord of the Rings" Read aloud English and Russian sentences by different voices: balcon -f "d:\Text\book.txt" -n Kimberly --voice1-name Tatyana --voice1-langid ru ������������ �� �������� ��� FILM.WAV: balcon -f "d:\Text\film.srt" -w "d:\Sound\film.wav" -n "Laura" --sub-fit --sub-max 2 ������ �� ���������� � ���������� � LAME.EXE: balcon -f d:\book.txt -n Irina -o --raw | lame -r -s 22.05 -m m -h - d:\book.mp3 ������ �� ���������� � ���������� � OGGENC2.EXE: balcon -f d:\book.txt -n Irina -o -il | oggenc2 --ignorelength - -o d:\book.ogg ������ �� ���������� � ���������� � WMAENCODE.EXE: balcon -f d:\book.txt -n Irina -o -il | wmaencode - d:\book.wma --ignorelength *** ��������������� ���� *** ������� �� ��������� ��� ���� �� ����� ��������� � ��������������� ���� � ��� "balcon.cfg" � ������ �����, � ����� � � ���������� ����������. ������ �� ��������������� ����: =================== -f d:\Text\book.txt -w d:\Sound\book.wav -n Microsoft Anna -s 2 -p -1 -v 95 -e 300 -d d:\Dict\rules.bxd -lrc --lrc-length 75 --lrc-enc utf8 --lrc-offset 300 =================== ���������� ���� �� �������� ���������� �� ����� �� ���������������� ���� � �� ��������� ���. *** ������� ������� *** ���������� ��������� ���������� �� ��������� ��� ������ WAV � MP3 ������� (������� �������) � ������. ����� �� ��������� �������, �� ��������� �� ������� �����: {{Audio=C:\Sounds\ring.wav}} ��� ����������� �� ������ �� ����, ���������� �� ���� ������ ����� �� �������� ���� ���� ���������, �� ������������ �������� ���� � �� ������� �������� �� ����. ��� �������������� � ����� �������, ��������� ���� �� ���� ������� � ���������� �� ���������� ����� ����. *** "Voice" Tag *** If it is necessary to change a voice or its properties during reading aloud, a special tag can be used for SAPI 5 and Microsoft Speech Platform (SAPI 4 voices will ignore this tag). The tag format: {{Voice=Name;Rate;Pitch;Volume}} - Name: the name of a voice (one word or the part of a word is enough); - Rate: the rate of a voice (values range from -10 to 10); - Pitch: the pitch of a voice (values range from -10 to 10); - Volume: the volume (values range from 0 to 100). A tag applies to all subsequent text. The values are separated by semicolons. For example: This text will be spoken by the default voice of Balabolka. {{Voice=Kimberly;0;0;100}} The voice 'Kimberly' will read the other text. The tag's content is case insensitive. Values for some properties can be omitted: {{voice=eric;;;50}} {{Voice=Hans;-1}} {{Voice=Rachel}} To return to the default voice, use this tag: {{Voice=}} Warning! It is impossible to switch between SAPI 5 voices and voices of the Microsoft Speech Platform. *** "Pause" Tag *** A specified number of milliseconds of silence can be inserted into the output audio file. For example: One hundred twenty milliseconds of silence {{Pause=120}} just occurred. *** ������ *** You are free to use and distribute software for noncommercial purposes. For commercial use or distribution, you need to get permission from the copyright holder. ###