libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::Voice Class Reference

Holder for voice metadata. More...

#include <Voice.h>

Public Member Functions

bool deleteVoice ()
 
QStringList files () const
 List of files owned by this voice (depends on its type), relative to its directory.
 
QString getAuthor () const
 
QString getDescription () const
 
QDir getDir () const
 
QString getGender () const
 
QString getLang () const
 
QString getLangCode () const
 
QString getLicense () const
 
QString getModelFile () const
 Local file name of the Piper onnx model (empty for other types).
 
QString getName () const
 
QString getType () const
 
bool isPiper () const
 
bool isValid () const
 
Voiceoperator= (const Voice &other)=default
 
Voiceoperator= (Voice &&other)=default
 
 Voice ()=default
 
 Voice (const Voice &other)=default
 
 Voice (QDir dir)
 
 Voice (Voice &&other)=default
 
 ~Voice ()=default
 

Static Public Member Functions

static QStringList marbleFiles ()
 Mandatory files of a "Voice of Marble" ogg sample pack.
 

Detailed Description

Holder for voice metadata.

Constructor & Destructor Documentation

◆ Voice() [1/4]

osmscout::Voice::Voice ( )
default

◆ Voice() [2/4]

osmscout::Voice::Voice ( QDir  dir)
explicit

◆ ~Voice()

osmscout::Voice::~Voice ( )
default

◆ Voice() [3/4]

osmscout::Voice::Voice ( const Voice other)
default

◆ Voice() [4/4]

osmscout::Voice::Voice ( Voice &&  other)
default

Member Function Documentation

◆ deleteVoice()

bool osmscout::Voice::deleteVoice ( )

◆ files()

QStringList osmscout::Voice::files ( ) const

List of files owned by this voice (depends on its type), relative to its directory.

Used for validation and removal.

References isPiper(), and marbleFiles().

Referenced by deleteVoice(), and Voice().

◆ getAuthor()

QString osmscout::Voice::getAuthor ( ) const
inline

◆ getDescription()

QString osmscout::Voice::getDescription ( ) const
inline

◆ getDir()

◆ getGender()

QString osmscout::Voice::getGender ( ) const
inline

◆ getLang()

QString osmscout::Voice::getLang ( ) const
inline

◆ getLangCode()

QString osmscout::Voice::getLangCode ( ) const
inline

◆ getLicense()

QString osmscout::Voice::getLicense ( ) const
inline

◆ getModelFile()

QString osmscout::Voice::getModelFile ( ) const
inline

Local file name of the Piper onnx model (empty for other types).

Referenced by osmscout::PiperTTSEngine::initVoice().

◆ getName()

QString osmscout::Voice::getName ( ) const
inline

◆ getType()

QString osmscout::Voice::getType ( ) const
inline

◆ isPiper()

bool osmscout::Voice::isPiper ( ) const
inline

◆ isValid()

◆ marbleFiles()

QStringList osmscout::Voice::marbleFiles ( )
static

Mandatory files of a "Voice of Marble" ogg sample pack.

Referenced by files(), and osmscout::VoiceDownloadJob::start().

◆ operator=() [1/2]

Voice & osmscout::Voice::operator= ( const Voice other)
default

◆ operator=() [2/2]

Voice & osmscout::Voice::operator= ( Voice &&  other)
default

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