qvoice.html 11.9 KB
Newer Older
xuebingbing's avatar
xuebingbing committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
<?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.11</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 ><a href="../qtdoc/index.html">Qt 5.11</a></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.11.2 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 &lt;QVoice&gt;</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 &amp;<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"> QVoice::Age </td><td class="memItemRight bottomAlign"><b><a href="qvoice.html#age">age</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVoice::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 &amp;<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 &amp;<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 &amp;<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>
<p>The age of a voice.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QVoice::Child</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Voice of a child</td></tr>
<tr><td class="topAlign"><code>QVoice::Teenager</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Voice of a teenager</td></tr>
<tr><td class="topAlign"><code>QVoice::Adult</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Voice of an adult</td></tr>
<tr><td class="topAlign"><code>QVoice::Senior</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Voice of a senior</td></tr>
<tr><td class="topAlign"><code>QVoice::Other</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">Voice of unknown age</td></tr>
</table></div>
<!-- @@@Age -->
<!-- $$$Gender$$$Male$$$Female$$$Unknown -->
<h3 class="fn" id="Gender-enum"><a name="Gender-enum"></a>enum QVoice::<span class="name">Gender</span></h3>
<p>The gender of a voice.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QVoice::Male</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Voice of a male</td></tr>
<tr><td class="topAlign"><code>QVoice::Female</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Voice of a female</td></tr>
<tr><td class="topAlign"><code>QVoice::Unknown</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Voice of unknown gender</td></tr>
</table></div>
<!-- @@@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> &amp;<i>other</i>)</h3>
<p>Default constructs an instance of QVoice.</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">QVoice::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"><a href="../qtcore/qstring.html">QString</a></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 a string representing 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">QVoice::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"><a href="../qtcore/qstring.html">QString</a></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"><a href="../qtcore/qstring.html">QString</a></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> &amp;<i>other</i>)</h3>
<p>Compares the <a href="qvoice.html#name">name</a>, <a href="qvoice.html#gender">gender</a>, and <a href="qvoice.html#age">age</a> of this voice with <a href="../qtdoc/whatsnew50.html#other">other</a>. Returns <code>true</code> if they are not identical.</p>
<!-- @@@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> &amp;<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> &amp;<i>other</i>)</h3>
<p>Compares the <a href="qvoice.html#name">name</a>, <a href="qvoice.html#gender">gender</a>, and <a href="qvoice.html#age">age</a> of this voice with <a href="../qtdoc/whatsnew50.html#other">other</a>. Returns <code>true</code> if all of them match.</p>
<!-- @@@operator== -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2018 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>