<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qvoice.cpp --> <title>QVoice Class | Qt Speech 5.9</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.9</td><td ><a href="qtspeech-index.html">Qt Speech</a></td><td ><a href="qtspeech-module.html">C++ Classes</a></td><td >QVoice</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-types">Public Types</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#static-public-members">Static Public Members</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QVoice Class</h1> <!-- $$$QVoice-brief --> <p>The <a href="qvoice.html">QVoice</a> class allows to set and retrieve values of a particular voice <a href="#details">More...</a></p> <!-- @@@QVoice --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QVoice></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += texttospeech</td></tr></table></div><ul> <li><a href="qvoice-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h2 id="public-types">Public Types</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#Age-enum">Age</a></b> { Child, Teenager, Adult, Senior, Other }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#Gender-enum">Gender</a></b> { Male, Female, Unknown }</td></tr> </table></div> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#QVoice">QVoice</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#QVoice-1">QVoice</a></b>(const QVoice &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#dtor.QVoice">~QVoice</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Age </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#age">age</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Gender </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#gender">gender</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#name">name</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#operator-not-eq">operator!=</a></b>(const QVoice &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#operator-eq">operator=</a></b>(const QVoice &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#operator-eq-eq">operator==</a></b>(const QVoice &<i>other</i>)</td></tr> </table></div> <a name="static-public-members"></a> <h2 id="static-public-members">Static Public Members</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#ageName">ageName</a></b>(QVoice::Age <i>age</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#genderName">genderName</a></b>(QVoice::Gender <i>gender</i>)</td></tr> </table></div> <a name="details"></a> <!-- $$$QVoice-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qvoice.html">QVoice</a> class allows to set and retrieve values of a particular voice</p> </div> <!-- @@@QVoice --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$Age$$$Child$$$Teenager$$$Adult$$$Senior$$$Other --> <h3 class="fn" id="Age-enum"><a name="Age-enum"></a>enum QVoice::<span class="name">Age</span></h3> <!-- @@@Age --> <!-- $$$Gender$$$Male$$$Female$$$Unknown --> <h3 class="fn" id="Gender-enum"><a name="Gender-enum"></a>enum QVoice::<span class="name">Gender</span></h3> <!-- @@@Gender --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QVoice[overload1]$$$QVoice --> <h3 class="fn" id="QVoice"><a name="QVoice"></a>QVoice::<span class="name">QVoice</span>()</h3> <p>Default constructs an instance of QVoice.</p><!-- @@@QVoice --> <!-- $$$QVoice$$$QVoiceconstQVoice& --> <h3 class="fn" id="QVoice-1"><a name="QVoice-1"></a>QVoice::<span class="name">QVoice</span>(const <span class="type"><a href="qvoice.html#QVoice">QVoice</a></span> &<i>other</i>)</h3> <p>Copy constructor.</p><!-- @@@QVoice --> <!-- $$$~QVoice[overload1]$$$~QVoice --> <h3 class="fn" id="dtor.QVoice"><a name="dtor.QVoice"></a>QVoice::<span class="name">~QVoice</span>()</h3> <p>Destroys the instance of QVoice.</p><!-- @@@~QVoice --> <!-- $$$age[overload1]$$$age --> <h3 class="fn" id="age"><a name="age"></a><span class="type"><a href="qvoice.html#Age-enum">Age</a></span> QVoice::<span class="name">age</span>() const</h3> <p>Returns the age of a voice</p> <!-- @@@age --> <!-- $$$ageName[overload1]$$$ageNameQVoice::Age --> <h3 class="fn" id="ageName"><a name="ageName"></a><code>[static] </code><span class="type">QString</span> QVoice::<span class="name">ageName</span>(<span class="type"><a href="qvoice.html#Age-enum">QVoice::Age</a></span> <i>age</i>)</h3> <p>Returns the <i>age</i> class of a voice</p> <!-- @@@ageName --> <!-- $$$gender[overload1]$$$gender --> <h3 class="fn" id="gender"><a name="gender"></a><span class="type"><a href="qvoice.html#Gender-enum">Gender</a></span> QVoice::<span class="name">gender</span>() const</h3> <p>Returns the gender of a voice</p> <!-- @@@gender --> <!-- $$$genderName[overload1]$$$genderNameQVoice::Gender --> <h3 class="fn" id="genderName"><a name="genderName"></a><code>[static] </code><span class="type">QString</span> QVoice::<span class="name">genderName</span>(<span class="type"><a href="qvoice.html#Gender-enum">QVoice::Gender</a></span> <i>gender</i>)</h3> <p>̈́ Returns the <i>gender</i> name of a voice</p> <!-- @@@genderName --> <!-- $$$name[overload1]$$$name --> <h3 class="fn" id="name"><a name="name"></a><span class="type">QString</span> QVoice::<span class="name">name</span>() const</h3> <p>Returns the name of a voice</p> <!-- @@@name --> <!-- $$$operator!=[overload1]$$$operator!=constQVoice& --> <h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QVoice::<span class="name">operator!=</span>(const <span class="type"><a href="qvoice.html#QVoice">QVoice</a></span> &<i>other</i>)</h3> <!-- @@@operator!= --> <!-- $$$operator=[overload1]$$$operator=constQVoice& --> <h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type">void</span> QVoice::<span class="name">operator=</span>(const <span class="type"><a href="qvoice.html#QVoice">QVoice</a></span> &<i>other</i>)</h3> <p>Copy-assignment operator.</p><!-- @@@operator= --> <!-- $$$operator==[overload1]$$$operator==constQVoice& --> <h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QVoice::<span class="name">operator==</span>(const <span class="type"><a href="qvoice.html#QVoice">QVoice</a></span> &<i>other</i>)</h3> <!-- @@@operator== --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>