speechInput: Create a speech recognition input control

Description Usage Arguments

View source: R/speechInput.R

Description

Create an input control for entry of speech recognition text values.

Usage

1
speechInput(inputId, command = "hey shiny *message", label = NULL)

Arguments

inputId

The input slot that will be used to access the value.

command

The voice command that will activate the speechInput. The voice command must be exactly matched in order to send a value to the speechInput. To capture particular parts of the command, there are two symbols: "*" and ":". "*" captures any number of words, meanwhile ":" captures exactly one word. Moreover, to make words optional, they should be put between "(" and ")".

For example:

  • "hello world" will trigger the input$inputId event, with no particular value, when it is said "hello world".

  • "hello (my beatiful) world" will trigger the input$inputId event, with no particular value, when it is said "hello world" or "hello (my beatiful) world".

  • "hello my *world" will trigger the input$inputId event, with all the words said after "hello my".

  • "hello my :world" will trigger the input$inputId event, with the first word said after "hello my".

label

Display label, or NULL for no label.


jcrodriguez1989/heyshiny documentation built on Feb. 20, 2020, 11:23 p.m.