eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorEngines.GoogleV1Engine.html

branch
eric7
changeset 8513
a7464bea3d0a
parent 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8512:cc82680dba7b 8513:a7464bea3d0a
107 <p> 107 <p>
108 Constructor 108 Constructor
109 </p> 109 </p>
110 <dl> 110 <dl>
111 111
112 <dt><i>plugin</i></dt> 112 <dt><i>plugin</i> (TranslatorPlugin)</dt>
113 <dd> 113 <dd>
114 reference to the plugin object (TranslatorPlugin) 114 reference to the plugin object
115 </dd> 115 </dd>
116 <dt><i>parent</i></dt> 116 <dt><i>parent</i> (QObject)</dt>
117 <dd> 117 <dd>
118 reference to the parent object (QObject) 118 reference to the parent object
119 </dd> 119 </dd>
120 </dl> 120 </dl>
121 <a NAME="GoogleV1Engine.engineName" ID="GoogleV1Engine.engineName"></a> 121 <a NAME="GoogleV1Engine.engineName" ID="GoogleV1Engine.engineName"></a>
122 <h4>GoogleV1Engine.engineName</h4> 122 <h4>GoogleV1Engine.engineName</h4>
123 <b>engineName</b>(<i></i>) 123 <b>engineName</b>(<i></i>)
126 Public method to return the name of the engine. 126 Public method to return the name of the engine.
127 </p> 127 </p>
128 <dl> 128 <dl>
129 <dt>Return:</dt> 129 <dt>Return:</dt>
130 <dd> 130 <dd>
131 engine name (string) 131 engine name
132 </dd>
133 </dl>
134 <dl>
135 <dt>Return Type:</dt>
136 <dd>
137 str
132 </dd> 138 </dd>
133 </dl> 139 </dl>
134 <a NAME="GoogleV1Engine.getTextToSpeechData" ID="GoogleV1Engine.getTextToSpeechData"></a> 140 <a NAME="GoogleV1Engine.getTextToSpeechData" ID="GoogleV1Engine.getTextToSpeechData"></a>
135 <h4>GoogleV1Engine.getTextToSpeechData</h4> 141 <h4>GoogleV1Engine.getTextToSpeechData</h4>
136 <b>getTextToSpeechData</b>(<i>requestObject, text, language</i>) 142 <b>getTextToSpeechData</b>(<i>requestObject, text, language</i>)
138 <p> 144 <p>
139 Public method to pronounce the given text. 145 Public method to pronounce the given text.
140 </p> 146 </p>
141 <dl> 147 <dl>
142 148
143 <dt><i>requestObject</i></dt> 149 <dt><i>requestObject</i> (TranslatorRequest)</dt>
144 <dd> 150 <dd>
145 reference to the request object 151 reference to the request object
146 (TranslatorRequest) 152 </dd>
147 </dd> 153 <dt><i>text</i> (str)</dt>
148 <dt><i>text</i></dt> 154 <dd>
149 <dd> 155 text to be pronounced
150 text to be pronounced (string) 156 </dd>
151 </dd> 157 <dt><i>language</i> (str)</dt>
152 <dt><i>language</i></dt> 158 <dd>
153 <dd> 159 language code of the text
154 language code of the text (string) 160 </dd>
155 </dd> 161 </dl>
156 </dl> 162 <dl>
157 <dl> 163 <dt>Return:</dt>
158 <dt>Return:</dt> 164 <dd>
159 <dd> 165 tuple with pronounce data or error string and success flag
160 tuple with pronounce data (QByteArray) or error string (string) 166 </dd>
161 and success flag (boolean) 167 </dl>
168 <dl>
169 <dt>Return Type:</dt>
170 <dd>
171 tuple of (QByteArray or str, bool)
162 </dd> 172 </dd>
163 </dl> 173 </dl>
164 <a NAME="GoogleV1Engine.getTranslation" ID="GoogleV1Engine.getTranslation"></a> 174 <a NAME="GoogleV1Engine.getTranslation" ID="GoogleV1Engine.getTranslation"></a>
165 <h4>GoogleV1Engine.getTranslation</h4> 175 <h4>GoogleV1Engine.getTranslation</h4>
166 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>) 176 <b>getTranslation</b>(<i>requestObject, text, originalLanguage, translationLanguage</i>)
168 <p> 178 <p>
169 Public method to translate the given text. 179 Public method to translate the given text.
170 </p> 180 </p>
171 <dl> 181 <dl>
172 182
173 <dt><i>requestObject</i></dt> 183 <dt><i>requestObject</i> (TranslatorRequest)</dt>
174 <dd> 184 <dd>
175 reference to the request object 185 reference to the request object
176 (TranslatorRequest) 186 </dd>
177 </dd> 187 <dt><i>text</i> (str)</dt>
178 <dt><i>text</i></dt> 188 <dd>
179 <dd> 189 text to be translated
180 text to be translated (string) 190 </dd>
181 </dd> 191 <dt><i>originalLanguage</i> (str)</dt>
182 <dt><i>originalLanguage</i></dt> 192 <dd>
183 <dd> 193 language code of the original
184 language code of the original (string) 194 </dd>
185 </dd> 195 <dt><i>translationLanguage</i> (str)</dt>
186 <dt><i>translationLanguage</i></dt> 196 <dd>
187 <dd> 197 language code of the translation
188 language code of the translation (string) 198 </dd>
189 </dd> 199 </dl>
190 </dl> 200 <dl>
191 <dl> 201 <dt>Return:</dt>
192 <dt>Return:</dt> 202 <dd>
193 <dd> 203 tuple of translated text and flag indicating success
194 tuple of translated text (string) and flag indicating 204 </dd>
195 success (boolean) 205 </dl>
206 <dl>
207 <dt>Return Type:</dt>
208 <dd>
209 tuple of (str, bool)
196 </dd> 210 </dd>
197 </dl> 211 </dl>
198 <a NAME="GoogleV1Engine.hasTTS" ID="GoogleV1Engine.hasTTS"></a> 212 <a NAME="GoogleV1Engine.hasTTS" ID="GoogleV1Engine.hasTTS"></a>
199 <h4>GoogleV1Engine.hasTTS</h4> 213 <h4>GoogleV1Engine.hasTTS</h4>
200 <b>hasTTS</b>(<i></i>) 214 <b>hasTTS</b>(<i></i>)
203 Public method indicating the Text-to-Speech capability. 217 Public method indicating the Text-to-Speech capability.
204 </p> 218 </p>
205 <dl> 219 <dl>
206 <dt>Return:</dt> 220 <dt>Return:</dt>
207 <dd> 221 <dd>
208 flag indicating the Text-to-Speech capability (boolean) 222 flag indicating the Text-to-Speech capability
223 </dd>
224 </dl>
225 <dl>
226 <dt>Return Type:</dt>
227 <dd>
228 bool
209 </dd> 229 </dd>
210 </dl> 230 </dl>
211 <a NAME="GoogleV1Engine.supportedLanguages" ID="GoogleV1Engine.supportedLanguages"></a> 231 <a NAME="GoogleV1Engine.supportedLanguages" ID="GoogleV1Engine.supportedLanguages"></a>
212 <h4>GoogleV1Engine.supportedLanguages</h4> 232 <h4>GoogleV1Engine.supportedLanguages</h4>
213 <b>supportedLanguages</b>(<i></i>) 233 <b>supportedLanguages</b>(<i></i>)
216 Public method to get the supported languages. 236 Public method to get the supported languages.
217 </p> 237 </p>
218 <dl> 238 <dl>
219 <dt>Return:</dt> 239 <dt>Return:</dt>
220 <dd> 240 <dd>
221 list of supported language codes (list of string) 241 list of supported language codes
242 </dd>
243 </dl>
244 <dl>
245 <dt>Return Type:</dt>
246 <dd>
247 list of str
222 </dd> 248 </dd>
223 </dl> 249 </dl>
224 <div align="right"><a href="#top">Up</a></div> 250 <div align="right"><a href="#top">Up</a></div>
225 <hr /> 251 <hr />
226 </body></html> 252 </body></html>

eric ide

mercurial