コード例 #1
0
ファイル: jovie.cpp プロジェクト: KDE/jovie
void Jovie::setCurrentTalker(const TalkerCode &talker)
{
    Speaker::Instance()->setOutputModule(talker.outputModule());
    Speaker::Instance()->setLanguage(TalkerCode::languageCodeToLanguage(talker.language()));
    Speaker::Instance()->setVoiceType(talker.voiceType());
    Speaker::Instance()->setVolume(talker.volume());
    Speaker::Instance()->setSpeed(talker.rate());
    Speaker::Instance()->setPitch(talker.pitch());
}
コード例 #2
0
ファイル: talkercode.cpp プロジェクト: KDE/jovie
bool TalkerCode::operator!=(TalkerCode &other) const
{
    return d->language != other.language() ||
           d->voiceType != other.voiceType() ||
           d->rate != other.rate() ||
           d->volume != other.volume() ||
           d->pitch != other.pitch() ||
           d->voiceName != other.voiceName() ||
           d->outputModule != other.outputModule() ||
           d->punctuation != other.punctuation();
}
コード例 #3
0
ファイル: talkercode.cpp プロジェクト: KDE/jovie
bool TalkerCode::operator==(TalkerCode &other) const
{
    return d->language == other.language() &&
           d->voiceType == other.voiceType() &&
           d->rate == other.rate() &&
           d->volume == other.volume() &&
           d->pitch == other.pitch() &&
           d->voiceName == other.voiceName() &&
           d->outputModule == other.outputModule() &&
           d->punctuation == other.punctuation();
}
コード例 #4
0
ファイル: talkercode.cpp プロジェクト: KDE/jovie
/**
 * Copy Constructor.
 */
TalkerCode::TalkerCode(const TalkerCode& other)
:d(new TalkerCodePrivate(this))
{
    d->name = other.name();
    d->language = other.language();
    d->voiceType = other.voiceType();
    d->volume = other.volume();
    d->rate = other.rate();
    d->pitch = other.pitch();
    d->voiceName = other.voiceName();
    d->outputModule = other.outputModule();
    d->punctuation = other.punctuation();
}