Usage of each block

日本語のページ

Speak text

Speak text

Reads the specified text.
If Asynchronous is checked, the next block will be processed without waiting for the reading to complete.
If Asynchronous is unchecked, the next block will be processed after the specified text has finished being read.

Set the speech language

Set language to speech

Set the speech voice language.

Set the voice

Set voice

Set the speech voice type.
Available voices vary depending on the web browser.
Please note that if you open the program you created in another web browser, the voice will change.

Set Speed

Set speed

Sets the speech speed.
The range of values ​​that can be specified is 0.1 to 10. Values ​​closer to 0.1 are slower, and values ​​closer to 10 are faster.

Set Pitch

Set pitch

Sets the speech pitch.
The allowed value range is 0 to 2. The closer to 0, the lower the pitch, and the closer to 2, the higher the pitch.

Setting the Volume

Set volume

Sets the volume of the speech.
The allowed value range is 0 to 1. The closer to 1, the louder the volume.

Stop Reading

Stop speech

Stops reading.

Pause Reading

Pause speech

Pauses reading.

Resume speech

Resume speech

Resumes speech when paused.

Get paused status

Get paused status

Returns true or false to indicate whether speech is paused.

Speech in Progress

Get status of speech

Returns true or false to indicate whether speech is currently being spoken.
Note that this value remains true even when speech is paused.

Start Recognition

Start recognition

Speech recognition begins.
If the interim results check box is checked, you can obtain results even while recognition is in progress.
If the check box is unchecked, results will be obtained after recognition is complete.

Set the recognition language to

Set the recognition language

Set the language used for speech recognition.

Recognition Stop

Stop recognition

Stops speech recognition.

When recognition results are obtained

Process when recognition results are obtained

In this block, define the processing to be performed when speech recognition results are obtained.

When a recognition error occurs

Process when a recognition error occurs

In this block, define the processing to be performed when a speech recognition error occurs.

Transcript

Get transcript

Get the recognized transcript.
This can be used in the "When recognition results are obtained" block.

Getting Interim Recognition Results

Get interim status

Returns true or false to indicate whether recognition is in progress.
This can be used in the "When recognition results are obtained" block.

Error Type

Type of error

Retrieves the type of error when speech recognition fails.
Can be used within the "When a recognition error occurs" block.

Error Message

Error message

Gets the error message if a speech recognition error occurs.
Can be used within the "When a recognition error occurs" block.