231 url = QUrl( |
231 url = QUrl( |
232 self.TextToSpeechUrl |
232 self.TextToSpeechUrl |
233 + "?client=tw-ob&ie=utf-8&tl={0}&q={1}".format(language, text) |
233 + "?client=tw-ob&ie=utf-8&tl={0}&q={1}".format(language, text) |
234 ) |
234 ) |
235 return requestObject.get(url) |
235 return requestObject.get(url) |
|
236 |
|
237 |
|
238 def createEngine(plugin, parent=None): |
|
239 """ |
|
240 Function to instantiate a translator engine object. |
|
241 |
|
242 @param plugin reference to the plugin object |
|
243 @type TranslatorPlugin |
|
244 @param parent reference to the parent object (defaults to None) |
|
245 @type QObject (optional) |
|
246 @return reference to the instantiated translator engine object |
|
247 @rtype GoogleV1Engine |
|
248 """ |
|
249 return GoogleV1Engine(plugin, parent=parent) |