{"id":7108,"date":"2025-01-30T17:36:09","date_gmt":"2025-01-30T14:36:09","guid":{"rendered":"https:\/\/1.cbm.ua\/?p=7108"},"modified":"2025-01-30T17:44:25","modified_gmt":"2025-01-30T14:44:25","slug":"___-%d0%bb%d0%be%d0%ba%d0%b0%d0%bb%d1%8c%d0%bd%d1%8b%d0%b9-%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d0%bf%d0%be-%d0%b4%d0%bb%d1%8f-%d0%bf%d0%b5%d1%80%d0%b5%d0%b2%d0%be%d0%b4%d0%b0-%d1%82%d1%80%d0%b0","status":"publish","type":"post","link":"https:\/\/1.cbm.ua\/?p=7108","title":{"rendered":"___ \u043e\u0442 GPT &#8212; \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u041f\u041e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430, \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u0438 \u0438 \u043e\u0437\u0432\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u044f."},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"izmGPdkvnt\"><a href=\"https:\/\/1.cbm.ua\/?p=7110\">_ \u043e\u0442 DeepSeek &#8212; \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u041f\u041e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430, \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u0438 \u0438 \u043e\u0437\u0432\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u044f.<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u00ab_ \u043e\u0442 DeepSeek &#8212; \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u041f\u041e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430, \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u0438 \u0438 \u043e\u0437\u0432\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u044f.\u00bb &#8212; \u043b\u0438\u0447\u043d\u044b\u0439 \u0411\u043b\u043e\u0433\" src=\"https:\/\/1.cbm.ua\/?p=7110&#038;embed=true#?secret=OzpFC5FI3t#?secret=izmGPdkvnt\" data-secret=\"izmGPdkvnt\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-nv-c-1-color\">\u041d\u0443\u0436\u0435\u043d \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u0430 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u043c \u0438 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043a\u043e\u0439 Windows 11 ?<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0441\u0430 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u043c \u0438 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0432 Python \u043f\u043e\u0434 Windows 11 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0412\u043e\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Vosk (\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br>\u2705 \u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0444\u043b\u0430\u0439\u043d<br>\u2705 \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0443\u0441\u0441\u043a\u0438\u0439, \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u0439 \u0438 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439<br>\u2705 \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e, \u0434\u0430\u0436\u0435 \u043d\u0430 \u0441\u043b\u0430\u0431\u044b\u0445 \u041f\u041a<br>\u2705 \u041f\u0440\u043e\u0441\u0442 \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435<br>\u2705 \u041d\u0438\u0437\u043a\u043e\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/li>\n\n\n\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br>\u274c \u0422\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 (\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0442\u0435\u043d \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442)<br>\u274c \u041d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0442\u043e\u0447\u043d\u044b\u0439, \u043a\u0430\u043a \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sh\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install vosk\npip install sounddevice  # \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043e\u043c\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0441\u0430 \u0441 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>import queue\nimport sounddevice as sd\nimport vosk\nimport json\n\nmodel_path = \"vosk-model-ru\"  # \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u043d\u0430 \u043f\u0443\u0442\u044c \u043a \u0432\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 (\u0440\u0443\u0441\u0441\u043a\u0438\u0439, \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u0439, \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439)\nmodel = vosk.Model(model_path)\nq = queue.Queue()\n\ndef callback(indata, frames, time, status):\n    if status:\n        print(status, flush=True)\n    q.put(bytes(indata))\n\nwith sd.RawInputStream(samplerate=16000, blocksize=8000, dtype='int16',\n                       channels=1, callback=callback):\n    rec = vosk.KaldiRecognizer(model, 16000)\n    print(\"\u0413\u043e\u0432\u043e\u0440\u0438\u0442\u0435...\")\n    while True:\n        data = q.get()\n        if rec.AcceptWaveform(data):\n            result = json.loads(rec.Result())\n            print(\"\u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442:\", result[\"text\"])\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0413\u0434\u0435 \u0432\u0437\u044f\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0420\u0443\u0441\u0441\u043a\u0438\u0439: <a>Vosk Model Russian<\/a><\/li>\n\n\n\n<li>\u041d\u0435\u043c\u0435\u0446\u043a\u0438\u0439: <a>Vosk Model German<\/a><\/li>\n\n\n\n<li>\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439: <a>Vosk Model English<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Whisper \u043e\u0442 OpenAI (\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br>\u2705 \u0412\u044b\u0441\u043e\u043a\u0430\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c<br>\u2705 \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e, \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u0433\u043e, \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e (\u0438 90+ \u044f\u0437\u044b\u043a\u043e\u0432)<br>\u2705 \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438<\/li>\n\n\n\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br>\u274c \u041c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 CPU (\u043b\u0443\u0447\u0448\u0435 \u0441 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u043e\u0439)<br>\u274c \u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 (\u043e\u0442 1 \u0413\u0411 RAM \u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c)<br>\u274c \u0412\u0435\u0441 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0434\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sh\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install openai-whisper\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0430\u0443\u0434\u0438\u043e\u0444\u0430\u0439\u043b\u0430:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>import whisper\n\nmodel = whisper.load_model(\"small\")  # \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \"medium\" \u0438\u043b\u0438 \"large\" \u0434\u043b\u044f \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430\nresult = model.transcribe(\"audio.mp3\", language=\"ru\")  # \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \"ru\" \u043d\u0430 \"de\" \u0438\u043b\u0438 \"en\" \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\nprint(result[\"text\"])\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0413\u0434\u0435 \u0432\u0437\u044f\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Whisper \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u26a0 <strong>\u0412\u0430\u0436\u043d\u043e!<\/strong> \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u044b, \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>\"tiny\"<\/code> \u0438\u043b\u0438 <code>\"small\"<\/code> \u043c\u043e\u0434\u0435\u043b\u044c, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>DeepSpeech (\u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430, \u043d\u043e \u0441\u043b\u0430\u0431\u0435\u0435)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br>\u2705 \u041e\u0444\u0444\u043b\u0430\u0439\u043d<br>\u2705 \u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043e\u0434<\/li>\n\n\n\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br>\u274c \u041d\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e<br>\u274c \u0421\u043b\u043e\u0436\u043d\u0435\u0435 \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435<br>\u274c \u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0445\u0443\u0436\u0435, \u0447\u0435\u043c \u0443 Vosk \u0438 Whisper<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Vosk \u0438\u043b\u0438 Whisper<\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b\u0435 \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0412\u044b\u0432\u043e\u0434<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430<\/th><th>\u041e\u0444\u043b\u0430\u0439\u043d?<\/th><th>\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c<\/th><th>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c<\/th><th>\u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430<\/th><th>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u044f\u0437\u044b\u043a\u043e\u0432<\/th><\/tr><\/thead><tbody><tr><td>Vosk<\/td><td>\u2705 \u0414\u0430<\/td><td>\ud83d\udfe2 \u0421\u0440\u0435\u0434\u043d\u044f\u044f<\/td><td>\ud83d\udfe2 \u0411\u044b\u0441\u0442\u0440\u0430\u044f<\/td><td>\ud83d\udfe2 \u041f\u0440\u043e\u0441\u0442\u0430\u044f<\/td><td>\ud83c\uddf7\ud83c\uddfa \ud83c\udde9\ud83c\uddea \ud83c\uddec\ud83c\udde7 (\u0438 \u0434\u0440\u0443\u0433\u0438\u0435)<\/td><\/tr><tr><td>Whisper<\/td><td>\u2705 \u0414\u0430<\/td><td>\ud83d\udd35 \u0412\u044b\u0441\u043e\u043a\u0430\u044f<\/td><td>\ud83d\udd34 \u041c\u0435\u0434\u043b\u0435\u043d\u043d\u0430\u044f (\u043d\u0430 CPU)<\/td><td>\ud83d\udfe0 \u0421\u0440\u0435\u0434\u043d\u044f\u044f<\/td><td>\ud83c\uddf7\ud83c\uddfa \ud83c\udde9\ud83c\uddea \ud83c\uddec\ud83c\udde7 (90+ \u044f\u0437\u044b\u043a\u043e\u0432)<\/td><\/tr><tr><td>DeepSpeech<\/td><td>\u2705 \u0414\u0430<\/td><td>\ud83d\udd34 \u041d\u0438\u0437\u043a\u0430\u044f<\/td><td>\ud83d\udd34 \u041c\u0435\u0434\u043b\u0435\u043d\u043d\u0430\u044f<\/td><td>\ud83d\udd34 \u0421\u043b\u043e\u0436\u043d\u0430\u044f<\/td><td>\ud83c\uddec\ud83c\udde7 (\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ud83d\udd39 \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043e\u0444\u0444\u043b\u0430\u0439\u043d-\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435:<\/strong> \ud83d\udccc <strong>Vosk<\/strong><\/li>\n\n\n\n<li><strong>\u0415\u0441\u043b\u0438 \u0432\u0430\u0436\u043d\u0430 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0438 \u0435\u0441\u0442\u044c \u043c\u043e\u0449\u043d\u044b\u0439 \u041f\u041a (GPU):<\/strong> \ud83d\udccc <strong>Whisper<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-nv-c-1-color\">\u041d\u0443\u0436\u0435\u043d \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 <strong>\u043f\u0435\u0440\u0435\u0432\u043e\u0434 <\/strong>\u0434\u043b\u044f \u044f\u0437\u044b\u043a\u043e\u0432 \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e, \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u0433\u043e \u0438 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043a\u043e\u0439 Windows 11 ?<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u0431\u0435 \u043d\u0443\u0436\u0435\u043d \u043e\u0444\u043b\u0430\u0439\u043d-\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e, \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u0433\u043e \u0438 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0430 Python \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0435 \u0441 Windows 11. \u0412\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Argos Translate<\/strong> (\u041b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441 \u043e\u0444\u043b\u0430\u0439\u043d-\u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438.<\/li>\n\n\n\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u044b RU-DE, RU-EN, EN-DE.<\/li>\n\n\n\n<li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043b\u0435\u0433\u043a\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install argostranslate\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 (\u0440\u0430\u0437\u043e\u0432\u043e):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>import argostranslate.package\nimport argostranslate.translate\n\nfrom argostranslate import package, translate\nimport os\n\n# \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430\nos.system(\"wget https:\/\/github.com\/argosopentech\/argospm\/raw\/main\/packages\/ru_en.argosmodel\")\nos.system(\"wget https:\/\/github.com\/argosopentech\/argospm\/raw\/main\/packages\/en_ru.argosmodel\")\nos.system(\"wget https:\/\/github.com\/argosopentech\/argospm\/raw\/main\/packages\/de_ru.argosmodel\")\nos.system(\"wget https:\/\/github.com\/argosopentech\/argospm\/raw\/main\/packages\/ru_de.argosmodel\")\nos.system(\"wget https:\/\/github.com\/argosopentech\/argospm\/raw\/main\/packages\/en_de.argosmodel\")\nos.system(\"wget https:\/\/github.com\/argosopentech\/argospm\/raw\/main\/packages\/de_en.argosmodel\")\n\n# \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438\npackage.install_from_path(\"ru_en.argosmodel\")\npackage.install_from_path(\"en_ru.argosmodel\")\npackage.install_from_path(\"de_ru.argosmodel\")\npackage.install_from_path(\"ru_de.argosmodel\")\npackage.install_from_path(\"en_de.argosmodel\")\npackage.install_from_path(\"de_en.argosmodel\")\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>translated_text = translate.translate(\"\u041f\u0440\u0438\u0432\u0435\u0442, \u043a\u0430\u043a \u0434\u0435\u043b\u0430?\", \"ru\", \"en\")\nprint(translated_text)  # Hello, how are you?\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Fairseq + M2M-100 (Facebook AI)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041e\u0447\u0435\u043d\u044c \u043c\u043e\u0449\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c (\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 100+ \u044f\u0437\u044b\u043a\u043e\u0432).<\/li>\n\n\n\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>\u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e<\/strong>, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043c\u043e\u0449\u043d\u043e\u0433\u043e \u0436\u0435\u043b\u0435\u0437\u0430 (8+ GB RAM).<\/li>\n\n\n\n<li>\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u0443 Argos Translate.<\/li>\n\n\n\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 PyTorch.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 ~4GB):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install fairseq\ngit clone https:\/\/github.com\/facebookresearch\/m2m100.git\ncd m2m100\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 Python:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>from fairseq.models.transformer import TransformerModel\n\nmodel = TransformerModel.from_pretrained(\n    'm2m100_418M',\n    checkpoint_file='model.pt',\n    data_name_or_path='data'\n)\n\nmodel.eval()\ntranslated_text = model.translate(\"\u041f\u0440\u0438\u0432\u0435\u0442, \u043a\u0430\u043a \u0434\u0435\u043b\u0430?\", source_lang=\"ru\", target_lang=\"de\")\nprint(translated_text)  # Hallo, wie geht's?\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>OPUS-MT (B\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 MarianMT)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e, \u043d\u043e \u043b\u0435\u0433\u0447\u0435, \u0447\u0435\u043c M2M-100.<\/li>\n\n\n\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>\u043e\u0444\u043b\u0430\u0439\u043d<\/strong>.<\/li>\n\n\n\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <code>transformers<\/code> \u043e\u0442 Hugging Face.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install transformers sentencepiece torch\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>from transformers import MarianMTModel, MarianTokenizer\n\ndef translate(text, src_lang, tgt_lang):\n    model_name = f'Helsinki-NLP\/opus-mt-{src_lang}-{tgt_lang}'\n    tokenizer = MarianTokenizer.from_pretrained(model_name)\n    model = MarianMTModel.from_pretrained(model_name)\n\n    inputs = tokenizer(text, return_tensors=\"pt\", padding=True, truncation=True)\n    translated = model.generate(**inputs)\n    return tokenizer.decode(translated[0], skip_special_tokens=True)\n\nprint(translate(\"\u041f\u0440\u0438\u0432\u0435\u0442, \u043a\u0430\u043a \u0434\u0435\u043b\u0430?\", \"ru\", \"en\"))  # Hello, how are you?\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0412\u044b\u0431\u043e\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/th><th>\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430<\/th><th>\u0420\u0430\u0437\u043c\u0435\u0440<\/th><th>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c<\/th><\/tr><\/thead><tbody><tr><td><strong>Argos Translate<\/strong><\/td><td>\u0421\u0440\u0435\u0434\u043d\u0435\u0435<\/td><td>200-500MB<\/td><td>\u0411\u044b\u0441\u0442\u0440\u043e<\/td><\/tr><tr><td><strong>Fairseq M2M-100<\/strong><\/td><td>\u0412\u044b\u0441\u043e\u043a\u043e\u0435<\/td><td>4GB+<\/td><td>\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e<\/td><\/tr><tr><td><strong>OPUS-MT (MarianMT)<\/strong><\/td><td>\u0421\u0440\u0435\u0434\u043d\u0435\u0435<\/td><td>1GB+<\/td><td>\u0421\u0440\u0435\u0434\u043d\u0435<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0438 \u043b\u0451\u0433\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2192 Argos Translate<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0415\u0441\u043b\u0438 \u0432\u0430\u0436\u0435\u043d \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u2192 Fairseq M2M-100<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0415\u0441\u043b\u0438 \u0431\u0430\u043b\u0430\u043d\u0441 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u2192 OPUS-MT (MarianMT)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-nv-c-1-color\">\u041d\u0443\u0436\u0435\u043d \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f \u043e\u0437\u0432\u0443\u0447\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 Python \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043a\u043e\u0439 Windows 11 ?<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0439 (\u043e\u0444\u043b\u0430\u0439\u043d) \u043e\u0437\u0432\u0443\u0447\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 Windows 11 \u0441 Python \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0434\u0432\u0438\u0436\u043a\u043e\u0432:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1\ufe0f\u20e3 <strong>Microsoft Speech Platform (\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 Windows)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <strong>SAPI (Speech API)<\/strong>, \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 Windows.<\/li>\n\n\n\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>\u043e\u0444\u043b\u0430\u0439\u043d<\/strong>.<\/li>\n\n\n\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 <strong>\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a<\/strong> (\u043d\u043e \u0433\u043e\u043b\u043e\u0441\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b).<\/li>\n\n\n\n<li><strong>\u0411\u0430\u0437\u043e\u0432\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e<\/strong> \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0440\u0435\u0447\u0438.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>import pyttsx3\n\nengine = pyttsx3.init()\nengine.setProperty(\"rate\", 150)  # \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0435\u0447\u0438\nengine.setProperty(\"volume\", 1)  # \u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c\n\nengine.say(\"\u041f\u0440\u0438\u0432\u0435\u0442, \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0434\u0432\u0438\u0436\u043e\u043a!\")\nengine.runAndWait()\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\ud83d\udccc \u0421\u043e\u0432\u0435\u0442:<\/em> \u041c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>engine.setProperty(\"voice\", voice_id)<\/code>. \u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0433\u043e\u043b\u043e\u0441\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>voices = engine.getProperty(\"voices\")\nfor voice in voices:\n    print(voice.id)\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2\ufe0f\u20e3 <strong>Voxygen \/ RHVoice<\/strong> (\u043b\u0443\u0447\u0448\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>RHVoice<\/strong> \u2014 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043e\u0444\u043b\u0430\u0439\u043d-\u0434\u0432\u0438\u0436\u043e\u043a \u0441 \u0445\u043e\u0440\u043e\u0448\u0438\u043c\u0438 \u0433\u043e\u043b\u043e\u0441\u0430\u043c\u0438 \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.<\/li>\n\n\n\n<li><strong>Voxygen<\/strong> \u2014 \u0430\u043d\u0430\u043b\u043e\u0433 \u0441 \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c, \u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>RHVoice:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 RHVoice<\/strong>:<br><a>\u0421\u043a\u0430\u0447\u0430\u0442\u044c RHVoice \u0434\u043b\u044f Windows<\/a><\/li>\n\n\n\n<li><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Python<\/strong>:sh\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install rhvoice-wrapper<\/code><\/li>\n\n\n\n<li><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043a\u043e\u0434\u0435:<\/strong>python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>from rhvoice_wrapper import RHVoice rhv = RHVoice() rhv.say(\"\u041f\u0440\u0438\u0432\u0435\u0442, \u044f \u0433\u043e\u0432\u043e\u0440\u044e \u0433\u043e\u043b\u043e\u0441\u043e\u043c RHVoice!\")<\/code><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3\ufe0f\u20e3 <strong>Coqui TTS (Deep Learning, \u043e\u0444\u043b\u0430\u0439\u043d, \u043b\u0443\u0447\u0448\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 <strong>\u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0438\u043d\u0442\u0435\u0437 \u0440\u0435\u0447\u0438<\/strong>.<\/li>\n\n\n\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>\u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0444\u043b\u0430\u0439\u043d<\/strong>.<\/li>\n\n\n\n<li>\u041c\u043e\u0436\u043d\u043e \u043e\u0431\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0434 \u0441\u0432\u043e\u0439 \u0433\u043e\u043b\u043e\u0441.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sh\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install TTS\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>from TTS.api import TTS\n\ntts = TTS(\"tts_models\/multilingual\/multi-dataset\/xtts_v2\", gpu=False)\ntts.tts_to_file(text=\"\u041f\u0440\u0438\u0432\u0435\u0442, \u043a\u0430\u043a \u0434\u0435\u043b\u0430?\", file_path=\"output.wav\", speaker_wav=\"your_voice.wav\", language=\"ru\")\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\ud83d\udccc \u0421\u043e\u0432\u0435\u0442:<\/em> \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <code>your_voice.wav<\/code> \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0433\u043e\u043b\u043e\u0441\u043e\u043c \u0434\u043b\u044f \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0412\u044b\u0431\u043e\u0440 \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0414\u0432\u0438\u0436\u043e\u043a<\/th><th>\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e<\/th><th>\u042f\u0437\u044b\u043a<\/th><th>\u041e\u0444\u043b\u0430\u0439\u043d<\/th><th>\u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430<\/th><\/tr><\/thead><tbody><tr><td><strong>SAPI5<\/strong> (pyttsx3)<\/td><td>\u2b50\u2b50<\/td><td>\u0420\u0443\u0441\/\u0410\u043d\u0433\u043b<\/td><td>\u2705<\/td><td>\u2705<\/td><\/tr><tr><td><strong>RHVoice<\/strong><\/td><td>\u2b50\u2b50\u2b50<\/td><td>\u0420\u0443\u0441\u0441\u043a\u0438\u0439<\/td><td>\u2705<\/td><td>\u2705<\/td><\/tr><tr><td><strong>Coqui TTS<\/strong><\/td><td>\u2b50\u2b50\u2b50\u2b50<\/td><td>\u041b\u044e\u0431\u043e\u0439<\/td><td>\u2705<\/td><td>\u274c (\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d <strong>\u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043e\u0444\u043b\u0430\u0439\u043d-\u0434\u0432\u0438\u0436\u043e\u043a<\/strong> \u2192 <em>pyttsx3 \u0438\u043b\u0438 RHVoice<\/em>.<br>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e <strong>\u043b\u0443\u0447\u0448\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e<\/strong> \u2192 <em>Coqui TTS<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-nv-c-1-color\">\u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0435 \u0434\u043b\u044f \u043e\u0437\u0432\u0443\u0447\u043a\u0438 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 Python \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043a\u043e\u0439 Windows 11 ?<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 Python \u0434\u043b\u044f \u043e\u0437\u0432\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043d\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0441 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c\u0438 \u0433\u043e\u043b\u043e\u0441\u0430\u043c\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0438\u043d\u0442\u0435\u0437\u0430\u0442\u043e\u0440\u0430 \u0440\u0435\u0447\u0438 Windows (SAPI5)<\/strong> \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <code>pyttsx3<\/code><\/li>\n\n\n\n<li><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Google Text-to-Speech (gTTS)<\/strong> \u0434\u043b\u044f \u043e\u043d\u043b\u0430\u0439\u043d-\u043e\u0437\u0432\u0443\u0447\u043a\u0438<\/li>\n\n\n\n<li><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 TTS, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, VITS, Coqui TTS, Piper \u0438 \u0434\u0440\u0443\u0433\u0438\u0435<\/strong><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0433\u043e\u043b\u043e\u0441\u043e\u0432 Windows (SAPI5)<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Windows 11 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0435\u0437\u0430\u0442\u043e\u0440 \u0440\u0435\u0447\u0438 (SAPI5), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0428\u0430\u0433\u0438 \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0433\u043e\u043b\u043e\u0441\u0430 Windows<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 &#171;\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438&#187; \u2192 &#171;\u0412\u0440\u0435\u043c\u044f \u0438 \u044f\u0437\u044b\u043a&#187; \u2192 &#171;\u0420\u0435\u0447\u044c&#187;<\/strong><\/li>\n\n\n\n<li><strong>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u044f\u0437\u044b\u043a \u0432 &#171;\u042f\u0437\u044b\u043a\u0438 \u0438 \u0440\u0435\u0433\u0438\u043e\u043d&#187;<\/strong> (\u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043e\u0437\u0432\u0443\u0447\u043a\u0443)<\/li>\n\n\n\n<li><strong>\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0433\u043e\u043b\u043e\u0441 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 &#171;\u0413\u043e\u043b\u043e\u0441\u0430 \u0440\u0435\u0447\u0438&#187;<\/strong><\/li>\n\n\n\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u044f\u0437\u044b\u043a \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0443<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e Python \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0433\u043e\u043b\u043e\u0441\u0430 \u0447\u0435\u0440\u0435\u0437 <code>pyttsx3<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f SAPI5 \u0432 Python<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>import pyttsx3\n\nengine = pyttsx3.init()\nvoices = engine.getProperty('voices')\n\n# \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\nfor index, voice in enumerate(voices):\n    print(f\"{index}: {voice.name} ({voice.languages})\")\n\n# \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0441 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 1-\u0439 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435)\nengine.setProperty('voice', voices[1].id)\nengine.setProperty('rate', 150)  # \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0435\u0447\u0438\n\nengine.say(\"\u041f\u0440\u0438\u0432\u0435\u0442! \u042d\u0442\u043e \u0442\u0435\u0441\u0442 \u043e\u0437\u0432\u0443\u0447\u043a\u0438.\")\nengine.runAndWait()\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 <strong>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0435\u0442<\/strong> \u2014 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043e\u043d \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Windows.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Google TTS (gTTS)<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441, \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u044f\u0437\u044b\u043a\u043e\u0432.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sh\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install gtts\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>from gtts import gTTS\nimport os\n\ntext = \"Hallo, wie geht es dir?\"\ntts = gTTS(text=text, lang=\"de\")  # \u041d\u0435\u043c\u0435\u0446\u043a\u0438\u0439 \u044f\u0437\u044b\u043a\ntts.save(\"output.mp3\")\n\n# \u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 (Windows)\nos.system(\"start output.mp3\")\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u044f\u0437\u044b\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/gtts.readthedocs.io\/en\/latest\/module.html#supported-languages\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Coqui TTS (\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438)<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0435\u0437 \u0440\u0435\u0447\u0438, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Coqui TTS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sh\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>pip install TTS\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>from TTS.api import TTS\n\ntts = TTS(model_name=\"tts_models\/de\/thorsten\/tacotron2\")  # \u041d\u0435\u043c\u0435\u0446\u043a\u0438\u0439 \u0433\u043e\u043b\u043e\u0441\ntts.tts_to_file(text=\"Guten Tag! Das ist ein Test.\", file_path=\"output.wav\")\n\n# \u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438\nos.system(\"start output.wav\")\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 \u0414\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u0437\u0430\u0440\u0430\u043d\u0435\u0435.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0412\u044b\u0432\u043e\u0434<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0425\u043e\u0442\u0438\u0442\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0433\u043e\u043b\u043e\u0441\u0430 Windows?<\/strong> \u2192 \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>pyttsx3<\/code> (\u043d\u043e \u0441\u043f\u0435\u0440\u0432\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u044f\u0437\u044b\u043a\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 Windows)<\/li>\n\n\n\n<li><strong>\u041d\u0443\u0436\u0435\u043d \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u043d\u043b\u0430\u0439\u043d-TTS?<\/strong> \u2192 \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>gTTS<\/code><\/li>\n\n\n\n<li><strong>\u041d\u0443\u0436\u0435\u043d \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0434\u0432\u0438\u0436\u043e\u043a?<\/strong> \u2192 \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>Coqui TTS<\/code> \u0438\u043b\u0438 <code>Piper<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442? \ud83d\ude80<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4o<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u0412\u044b \u0441\u043a\u0430\u0437\u0430\u043b\u0438:<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">engine.setProperty(&#8216;rate&#8217;, 150) # \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0435\u0447\u0438 \u043a\u0430\u043a\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 ?<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">ChatGPT \u0441\u043a\u0430\u0437\u0430\u043b:<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 <code>pyttsx3<\/code> \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong><code>rate<\/code><\/strong> \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0435\u0447\u0438, \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u043c\u0443\u044e \u0432 \u0441\u043b\u043e\u0432\u0430\u0445 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 (WPM \u2014 Words Per Minute).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0432 <code>pyttsx3<\/code><\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong>: \u043e\u043a\u043e\u043b\u043e <strong>50 WPM<\/strong> (\u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e)<\/li>\n\n\n\n<li><strong>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong>: \u043e\u043a\u043e\u043b\u043e <strong>200 WPM<\/strong> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e)<\/li>\n\n\n\n<li><strong>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong>: \u043e\u043a\u043e\u043b\u043e <strong>400-500 WPM<\/strong> (\u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udca1 <strong>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<code>import pyttsx3\n\nengine = pyttsx3.init()\n\nprint(\"\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c:\", engine.getProperty('rate'))\n\nengine.setProperty('rate', 100)  # \u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\nengine.say(\"\u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0447\u044c.\")\nengine.runAndWait()\n\nengine.setProperty('rate', 200)  # \u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e)\nengine.say(\"\u042d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c.\")\nengine.runAndWait()\n\nengine.setProperty('rate', 300)  # \u0411\u044b\u0441\u0442\u0440\u043e\nengine.say(\"\u042d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u0440\u0435\u0447\u044c.\")\nengine.runAndWait()\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 <strong>\u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>100-150 WPM<\/strong> \u2014 \u0434\u043b\u044f \u0447\u0435\u0442\u043a\u043e\u0433\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u043d\u043e\u0448\u0435\u043d\u0438\u044f<\/li>\n\n\n\n<li><strong>180-220 WPM<\/strong> \u2014 \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c<\/li>\n\n\n\n<li><strong>250-300 WPM<\/strong> \u2014 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0447\u0442\u0435\u043d\u0438\u044f<\/li>\n\n\n\n<li><strong>350+ WPM<\/strong> \u2014 \u0443\u0436\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0440\u0430\u0437\u0431\u043e\u0440\u0447\u0438\u0432\u0430\u044f \u0440\u0435\u0447\u044c<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \ud83d\ude80<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0443\u0436\u0435\u043d \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u0430 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u043c \u0438 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043a\u043e\u0439 Windows 11 ? \u0414\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0441\u0430 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u043c \u0438 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0432 Python \u043f\u043e\u0434 Windows 11 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0412\u043e\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b: 1. Vosk (\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430: sh\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044cpip install vosk pip install sounddevice # \u0414\u043b\u044f&hellip;&nbsp;<a href=\"https:\/\/1.cbm.ua\/?p=7108\" rel=\"bookmark\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 &raquo;<span class=\"screen-reader-text\">___ \u043e\u0442 GPT &#8212; \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u041f\u041e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430, \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u0438 \u0438 \u043e\u0437\u0432\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u044f.<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[138,2],"tags":[],"class_list":["post-7108","post","type-post","status-publish","format-standard","hentry","category-138","category-python"],"_links":{"self":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/7108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7108"}],"version-history":[{"count":3,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/7108\/revisions"}],"predecessor-version":[{"id":7117,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/7108\/revisions\/7117"}],"wp:attachment":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}