Learn R Programming

chatAI4R (version 1.3.1)

speakInEN: Speak Selected Text in English

Description

This function reads aloud the selected text in English using the MacOS system's 'say' command. It uses the voice specified by the parameter `systemVoice`. The default voice is "Alex". It only works on MacOS systems.

Usage

speakInEN(systemVoice = "Alex")

Value

A message indicating the completion of the speech is returned.

Arguments

systemVoice

The voice to be used for speech. Default is "Alex".

Author

Satoshi Kume

Details

Speak Selected Text in English on MacOS System

Examples

Run this code
if (FALSE) {
  # Select some text in RStudio and then run the rstudio addin
}

Run the code above in your browser using DataLab