Say command in windows

OS X ‘ say ‘ команда для Windows

say команда, пожалуй, самая замечательная особенность OS X терминала — он принимает текст в качестве входных данных и говорит его через динамики компьютера. Есть ли эквивалентный инструмент командной строки в Windows, Встроенный или через стороннюю программу?

4 ответов

PTTS очень простая программа командной строки Microsoft Windows для преобразования текста в речь. Если использует Microsoft Text to Speech Engine и Microsoft Speech SDK. Text to Speech Engine устанавливается с Windows XP с одним голосом несколько низкого качества. Программа установки Jampal включает в себя два лучше звучащих голоса. (цитата с сайта)

его можно использовать, просто введя текст в программу перенаправлением или по конвейеру текст:

этот вопрос задавался при переполнении стека. Мне нравится ответьте скриптом VBS.

и espeak доступен для Windows и Linux и был перенесен на OS X. Я не верю, что он использует встроенный движок Windows TTS.

Я создал простой пакетный скрипт для этого. Вот исходный код

сохранить скрипт в файл под названием «speak.bat » и переместите его в каталог, на который ссылается переменная PATH.

эта программа создает простой vbs с вашим входом, а затем говорит с системным голосом. В конце выполнения сценарий будет удален, чтобы освободить место для другого выполнения.

у них есть эта библиотека в SDK, где вы, вероятно, могли бы сделать более продвинутую утилиту с некоторыми личными усилиями.

хотя это, вероятно, самый удобный способ, поскольку он изначально встроен в систему и доступен через powershell.

создать экземпляр объекта

вызовите функцию и введите свои слова в качестве аргумента.

Windows commands

All supported versions of Windows (server and client) have a set of Win32 console commands built in.

This set of documentation describes the Windows Commands you can use to automate tasks by using scripts or scripting tools.

Prerequisites

The information that is contained in this topic applies to:

  • Windows Server 2019
  • Windows Server (Semi-Annual Channel)
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2012
  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows 10
  • Windows 8.1

Command shell overview

The Command shell was the first shell built into Windows to automate routine tasks, like user account management or nightly backups, with batch (.bat) files. With Windows Script Host you could run more sophisticated scripts in the Command shell. For more information, see cscript or wscript. You can perform operations more efficiently by using scripts than you can by using the user interface. Scripts accept all Commands that are available at the command line.

Windows has two command shells: The Command shell and PowerShell. Each shell is a software program that provides direct communication between you and the operating system or application, providing an environment to automate IT operations.

PowerShell was designed to extend the capabilities of the Command shell to run PowerShell commands called cmdlets. Cmdlets are similar to Windows Commands but provide a more extensible scripting language. You can run Windows Commands and PowerShell cmdlets in Powershell, but the Command shell can only run Windows Commands and not PowerShell cmdlets.

Читайте также:  Настроить тачпад macbook windows 10

For the most robust, up-to-date Windows automation, we recommend using PowerShell instead of Windows Commands or Windows Script Host for Windows automation.

You can also download and install PowerShell Core, the open source version of PowerShell.

Incorrectly editing the registry may severely damage your system. Before making the following changes to the registry, you should back up any valued data on the computer.

To enable or disable file and directory name completion in the Command shell on a computer or user logon session, run regedit.exe and set the following reg_DWOrd value:

To set the reg_DWOrd value, use the hexadecimal value of a control character for a particular function (for example, 0 9 is Tab and 0 08 is Backspace). User-specified settings take precedence over computer settings, and command-line options take precedence over registry settings.

Command-line reference A-Z

To find information about a specific command, in the following A-Z menu, click the letter that the command starts with, and then click the command name.

Команды Windows Windows commands

Все поддерживаемые версии Windows (сервер и клиент) имеют набор встроенных команд консоли Win32. All supported versions of Windows (server and client) have a set of Win32 console commands built in.

Этот набор документации описывает команды Windows, которые можно использовать для автоматизации задач с помощью скриптов или средств создания скриптов. This set of documentation describes the Windows Commands you can use to automate tasks by using scripts or scripting tools.

Предварительные требования Prerequisites

Сведения, содержащиеся в этом разделе, применимы к: The information that is contained in this topic applies to:

  • Windows Server 2019 Windows Server 2019
  • Windows Server (Semi-Annual Channel) Windows Server (Semi-Annual Channel)
  • Windows Server 2016 Windows Server 2016
  • Windows Server 2012 R2 Windows Server 2012 R2
  • Windows Server 2012 Windows Server 2012
  • Windows Server 2008 R2 Windows Server 2008 R2
  • Windows Server 2008 Windows Server 2008
  • Windows 10 Windows 10
  • Windows 8.1 Windows 8.1

Общие сведения о командной оболочке Command shell overview

Командная оболочка была первой оболочкой, встроенной в Windows, для автоматизации стандартных задач, таких как управление учетными записями пользователей или ночное резервное копирование с пакетными файлами (bat). The Command shell was the first shell built into Windows to automate routine tasks, like user account management or nightly backups, with batch (.bat) files. С помощью сервера сценариев Windows можно выполнять более сложные сценарии в командной оболочке. With Windows Script Host you could run more sophisticated scripts in the Command shell. Дополнительные сведения см. в разделе cscript или Wscript. For more information, see cscript or wscript. С помощью скриптов можно более эффективно выполнять операции, чем с помощью пользовательского интерфейса. You can perform operations more efficiently by using scripts than you can by using the user interface. Скрипты принимают все команды, доступные в командной строке. Scripts accept all Commands that are available at the command line.

Windows имеет две командные оболочки: Командная оболочка и PowerShell. Windows has two command shells: The Command shell and PowerShell. Каждая оболочка представляет собой программную программу, обеспечивающую прямой обмен данными между вами и операционной системой или приложением, предоставляя среду для автоматизации ИТ-операций. Each shell is a software program that provides direct communication between you and the operating system or application, providing an environment to automate IT operations.

PowerShell был разработан для расширения возможностей командной оболочки для выполнения команд PowerShell, называемых командлетами. PowerShell was designed to extend the capabilities of the Command shell to run PowerShell commands called cmdlets. Командлеты похожи на команды Windows, но предоставляют более расширяемый язык сценариев. Cmdlets are similar to Windows Commands but provide a more extensible scripting language. Вы можете выполнять команды Windows и командлеты PowerShell в PowerShell, но Командная оболочка может выполнять только команды Windows, а не командлеты PowerShell. You can run Windows Commands and PowerShell cmdlets in Powershell, but the Command shell can only run Windows Commands and not PowerShell cmdlets.

Для наиболее надежной и последней версии службы автоматизации Windows рекомендуется использовать PowerShell вместо команд Windows или сервера сценариев Windows для службы автоматизации Windows. For the most robust, up-to-date Windows automation, we recommend using PowerShell instead of Windows Commands or Windows Script Host for Windows automation.

Читайте также:  Windows based all in one computers

Вы также можете скачать и установить PowerShell Core, версию PowerShell с открытым исходным кодом. You can also download and install PowerShell Core, the open source version of PowerShell.

Неправильное изменение реестра может серьезно повредить систему. Incorrectly editing the registry may severely damage your system. Перед внесением следующих изменений в реестр следует создать резервную копию всех ценных данных на компьютере. Before making the following changes to the registry, you should back up any valued data on the computer.

Чтобы включить или отключить завершение имен файлов и каталогов в командной оболочке на компьютере или в сеансе входа пользователя, запустите regedit.exe и задайте следующее значение reg_DWOrd: To enable or disable file and directory name completion in the Command shell on a computer or user logon session, run regedit.exe and set the following reg_DWOrd value:

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\completionChar\reg_DWOrd HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\completionChar\reg_DWOrd

Чтобы задать значение reg_DWOrd , используйте шестнадцатеричное значение управляющего символа для конкретной функции (например, 0 9 — TAB, а 0 08 — Backspace). To set the reg_DWOrd value, use the hexadecimal value of a control character for a particular function (for example, 0 9 is Tab and 0 08 is Backspace). Заданные пользователем параметры имеют приоритет над параметрами компьютера, а параметры командной строки имеют приоритет над параметрами реестра. User-specified settings take precedence over computer settings, and command-line options take precedence over registry settings.

Справочник по командной строке A-Z Command-line reference A-Z

Чтобы найти сведения о конкретной команде, в следующем меню A-Z щелкните букву, с которой начинается команда, а затем щелкните имя команды. To find information about a specific command, in the following A-Z menu, click the letter that the command starts with, and then click the command name.

Объект | Б | C | Г | Д | F | Ж | З | Я | J | Л | L | М | N | O | P | Вопросы и ответы | Язык R | С | T | U | Версия | Н | X | Y | Гармошкой A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

How to Use the Say Command in Minecraft

This Minecraft tutorial explains how to use the /say command with screenshots and step-by-step instructions.

You can use the /say command to send a public message to all players in a Minecraft world (see also /msg, /tell or /w for private message). Let’s explore how to use this cheat (game command).

Supported Platforms

The /say command is available in the following versions of Minecraft:

Platform Supported (Version*)
Java Edition (PC/Mac) Yes
Pocket Edition (PE) Yes (0.16.0)
Xbox 360 No
Xbox One Yes (1.2)
PS3 No
PS4 Yes (1.14.0)
Wii U No
Nintendo Switch Yes (1.5.0)
Windows 10 Edition Yes (0.16.0)
Education Edition Yes

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Say Command

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Say Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac), the syntax to send a public message to all players is:

Definitions

  • message is the public message to send to all players in the Minecraft world. The message will appear in the Chat window for all players.

Say Command in Minecraft Pocket Edition (PE)

In Minecraft Pocket Edition (PE), the syntax to send a public message to all players is:

Definitions

  • message is the public message to send to all players in the Minecraft world. The message will appear in the Chat window for all players.

Say Command in Minecraft Xbox One Edition

In Minecraft Xbox One Edition, the syntax to send a public message to all players is:

Definitions

  • message is the public message to send to all players in the Minecraft world. The message will appear in the Chat window for all players.
Читайте также:  Анализатор логов для linux

Say Command in Minecraft PS4 Edition

In Minecraft PS4 Edition, the syntax to send a public message to all players is:

Definitions

  • message is the public message to send to all players in the Minecraft world. The message will appear in the Chat window for all players.

Say Command in Minecraft Nintendo Switch Edition

In Minecraft Nintendo Switch Edition, the syntax to send a public message to all players is:

Definitions

  • message is the public message to send to all players in the Minecraft world. The message will appear in the Chat window for all players.

Say Command in Minecraft Windows 10 Edition

In Minecraft Windows 10 Edition, the syntax to send a public message to all players is:

Definitions

  • message is the public message to send to all players in the Minecraft world. The message will appear in the Chat window for all players.

Say Command in Minecraft Education Edition

In Minecraft Education Edition, the syntax to send a public message to all players is:

Definitions

  • message is the public message to send to all players in the Minecraft world. The message will appear in the Chat window for all players.

Examples

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Example in Java Edition (PC/Mac)

To broadcast the public message «hello» to all players in Minecraft Java Edition (PC/Mac):

To broadcast the public message «Llamas rule!» to all players:

Example in Pocket Edition (PE)

To broadcast the public message «Watch Out!» to all players in Minecraft PE:

To broadcast the public message «Follow me» to all players:

Example in Xbox One Edition

To broadcast the public message There is a Shipwreck at (8, 52, 26)» to all players in Minecraft Xbox One Edition:

To broadcast the public message «Kill the phantom» to all players:

Example in PS4 Edition

To broadcast the public message «Find a Bee» to all players in Minecraft PS4 Edition:

To broadcast the public message «Subscribe to DigMinecraft» to all players:

Example in Nintendo Switch Edition

To broadcast the public message «Defend your base» to all players in Minecraft Nintendo Switch Edition:

To broadcast the public message «Find a Desert» to all players:

Example in Windows 10 Edition

To broadcast the public message «Attack the Creeper!» to all players in Minecraft Windows 10 Edition:

To broadcast the public message «Watch me» to all players:

Example in Education Edition

To broadcast the public message «Ready!!» to all players in Minecraft Education Edition:

To broadcast the public message «Read the sign» to all players:

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.
  • For Pocket Edition (PE), tap on the chat button at the top of the screen.
  • For Xbox One, press the D-Pad (right) on the controller.
  • For PS4, press the D-Pad (right) on the controller.
  • For Nintendo Switch, press the right arrow button on the controller.
  • For Windows 10 Edition, press the T key to open the chat window.
  • For Education Edition, press the T key to open the chat window.

2. Type the Command

In this example, we will send a public message to all players with the following command:

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

Once the cheat has been entered, the public message » Llamas rule! » will be displayed in the Chat window for all players in this Minecraft world.

Congratulations, you just learned how to use the /say command in Minecraft!

Other Game Commands

You can use other commands and cheats in Minecraft such as:

Оцените статью