221 """ |
221 """ |
222 text = text.split("\n\n", 1)[0] |
222 text = text.split("\n\n", 1)[0] |
223 if len(text) > self.TextToSpeechLimit: |
223 if len(text) > self.TextToSpeechLimit: |
224 return ( |
224 return ( |
225 self.tr( |
225 self.tr( |
226 "Google V1: Only texts up to {0} characters are" " allowed." |
226 "Google V1: Only texts up to {0} characters are allowed." |
227 ).format(self.TextToSpeechLimit), |
227 ).format(self.TextToSpeechLimit), |
228 False, |
228 False, |
229 ) |
229 ) |
230 |
230 |
231 url = QUrl( |
231 url = QUrl( |