src/eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.TranslationEngine.html

branch
eric7
changeset 10259
b51dfacef37f
parent 10070
9f5758c0fec1
child 10479
856476537696
equal deleted inserted replaced
10258:e7764f992a01 10259:b51dfacef37f
72 <td><a href="#TranslationEngine.engineName">engineName</a></td> 72 <td><a href="#TranslationEngine.engineName">engineName</a></td>
73 <td>Public method to get the name of the engine.</td> 73 <td>Public method to get the name of the engine.</td>
74 </tr> 74 </tr>
75 <tr> 75 <tr>
76 <td><a href="#TranslationEngine.getTextToSpeechData">getTextToSpeechData</a></td> 76 <td><a href="#TranslationEngine.getTextToSpeechData">getTextToSpeechData</a></td>
77 <td></td> 77 <td>Public method to pronounce the given text.</td>
78 </tr> 78 </tr>
79 <tr> 79 <tr>
80 <td><a href="#TranslationEngine.getTranslation">getTranslation</a></td> 80 <td><a href="#TranslationEngine.getTranslation">getTranslation</a></td>
81 <td>Public method to translate the given text.</td> 81 <td>Public method to translate the given text.</td>
82 </tr> 82 </tr>
138 </dl> 138 </dl>
139 <a NAME="TranslationEngine.getTextToSpeechData" ID="TranslationEngine.getTextToSpeechData"></a> 139 <a NAME="TranslationEngine.getTextToSpeechData" ID="TranslationEngine.getTextToSpeechData"></a>
140 <h4>TranslationEngine.getTextToSpeechData</h4> 140 <h4>TranslationEngine.getTextToSpeechData</h4>
141 <b>getTextToSpeechData</b>(<i>requestObject, text, language</i>) 141 <b>getTextToSpeechData</b>(<i>requestObject, text, language</i>)
142 142
143 <p>
144 Public method to pronounce the given text.
145 </p>
146 <dl>
147
148 <dt><i>requestObject</i> (TranslatorRequest)</dt>
149 <dd>
150 reference to the request object
151 </dd>
152 <dt><i>text</i> (str)</dt>
153 <dd>
154 text to be pronounced
155 </dd>
156 <dt><i>language</i> (str)</dt>
157 <dd>
158 language code of the text
159 </dd>
160 </dl>
161 <dl>
162 <dt>Return:</dt>
163 <dd>
164 tuple with pronounce data or an error string and a success flag
165 </dd>
166 </dl>
167 <dl>
168 <dt>Return Type:</dt>
169 <dd>
170 tuple of (QByteArray or str, bool)
171 </dd>
172 </dl>
143 <a NAME="TranslationEngine.getTranslation" ID="TranslationEngine.getTranslation"></a> 173 <a NAME="TranslationEngine.getTranslation" ID="TranslationEngine.getTranslation"></a>
144 <h4>TranslationEngine.getTranslation</h4> 174 <h4>TranslationEngine.getTranslation</h4>
145 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>) 175 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>)
146 176
147 <p> 177 <p>

eric ide

mercurial