COSC345CoolGroupASLtoSpeech
BridgingASLandspokenlanguagewithAI:Translategesturestospeechforinclusivecommunication.
Public Member Functions | List of all members
TextToSpeech Class Reference

The TextToSpeech class represents the text-to-speech functionality. More...

#include <ttsCall.h>

Public Member Functions

bool tts (const std::string &text)
 Converts the given text to speech using an external tool. More...
 
std::string getString ()
 Returns the current string that is being converted to speech. More...
 
void setPitch (int s)
 
void setSpeed (int s)
 
void setVolume (int s)
 
void setGender (int gender)
 

Detailed Description

The TextToSpeech class represents the text-to-speech functionality.

This class represents the text-to-speech functionality. It provides a function to convert text to speech using an external tool.

Member Function Documentation

◆ getString()

std::string TextToSpeech::getString ( )

Returns the current string that is being converted to speech.

This function is used to return the current string that is going to be converted to speech.

Returns
Returns the current string that is being converted to speech.

◆ setGender()

void TextToSpeech::setGender ( int  gender)

◆ setPitch()

void TextToSpeech::setPitch ( int  s)

◆ setSpeed()

void TextToSpeech::setSpeed ( int  s)

◆ setVolume()

void TextToSpeech::setVolume ( int  s)

◆ tts()

bool TextToSpeech::tts ( const std::string &  text)

Converts the given text to speech using an external tool.

This function takes a text input, constructs a command using the input text, and executes the command using an external text-to-speech tool. The resulting audio can be played using appropriate audio playback functions.

Parameters
textThe input text to convert to speech.
Returns
Returns true if the text-to-speech process is completed successfully, false otherwise.

The documentation for this class was generated from the following files: