Banner Image

Module Sound.RadioSpeech

Core - Makes the radio talk.


Features:

  • Send text strings using a vocabulary that is converted in spoken language.
  • Possiblity to implement multiple language.

Authors: FlightControl

Global(s)

Global RADIOSPEECH

Type(s)

Fields and Methods inherited from RADIOSPEECH Description

RADIOSPEECH:AddSentenceToSpeech(RemainingSentence, Speech, Sentence, Data)

Add Sentence to the Speech collection.

RADIOSPEECH:BuildTree()

Build the tree structure based on the language words, in order to find the correct sentences and to ignore incomprehensible words.

RADIOSPEECH.ClassName

RADIOSPEECH.Language

RADIOSPEECH:New(frequency, modulation)

Create a new RADIOSPEECH object for a given radio frequency/modulation.

RADIOSPEECH:SetLanguage(Langauge)

RADIOSPEECH:Speak(Sentence, Language)

Speak a sentence.

RADIOSPEECH:SpeakDigits(Sentence, Speech, Langauge)

Speak a sentence.

RADIOSPEECH:SpeakWords(Sentence, Speech, Language)

Speak a sentence.

RADIOSPEECH.Speech

RADIOSPEECH.Vocabulary

Makes the radio speak.

RADIOSPEECH usage

Field(s)

Function(s)

Add Sentence to the Speech collection.

Defined in:

RADIOSPEECH

Parameters:

#string RemainingSentence

The remaining sentence during recursion.

#table Speech

The speech node.

#string Sentence

The full sentence.

#string Data

The speech data.

Return value:

self The RADIOSPEECH object.

Build the tree structure based on the language words, in order to find the correct sentences and to ignore incomprehensible words.

Defined in:

RADIOSPEECH

Return value:

self The RADIOSPEECH object.

Create a new RADIOSPEECH object for a given radio frequency/modulation.

Defined in:

RADIOSPEECH

Parameters:

#number frequency

The radio frequency in MHz.

#number modulation

(Optional) The radio modulation. Default radio.modulation.AM.

Return value:

self The RADIOSPEECH object.

Defined in:

RADIOSPEECH

Parameter:

Langauge

Speak a sentence.

Defined in:

RADIOSPEECH

Parameters:

#string Sentence

The sentence to be spoken.

Language

Speak a sentence.

Defined in:

RADIOSPEECH

Parameters:

#string Sentence

The sentence to be spoken.

Speech

Langauge

Speak a sentence.

Defined in:

RADIOSPEECH

Parameters:

#string Sentence

The sentence to be spoken.

Speech

Language