Project

General

Profile

Bug #8235

Text to speech broken

Added by Yannick Warnier almost 3 years ago. Updated almost 3 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Documents
Target version:
Start date:
15/05/2016
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

In 1.10.x, none of the text-to-speech features (Google or Pediaphon) of the documents tool work. The Google option returns a 0B file. The Pediaphon option never return anything.


Files

Associated revisions

Revision f834ff52 (diff)
Added by Julio almost 3 years ago

Add translate_app_google_key fix setting, fix Pediaphon service see #8235

Revision b77003a2 (diff)
Added by jmontoyaa almost 3 years ago

Change service order see #8235

History

#1

Updated by Yannick Warnier almost 3 years ago

  • Assignee changed from José Loguercio to Julio Montoya
#2

Updated by Julio Montoya almost 3 years ago

1. The google conversion doesn't work in 1.9.x also:


Warning: file_get_contents(http://translate.google.com/translate_tts?tl=en&q=dqsdsqd): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in

I just update the code to use version 2 of the api. It requires a google app id.

Google Translate API is a paid enterprise service for translating large amounts of text. For website translations, we encourage you to use the Google Website Translator gadget.

In order to configure this go to:

https://cloud.google.com/translate/v2/quickstart

And follow the instructions. I couldnt fixed because I need to pay to try it out.
This is the message I got:


{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceeded",
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/translate/quotas?project=789282956155",
    "extendedHelp": "https://console.developers.google.com/apis/api/translate/quotas?project=789282956155" 
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/translate/quotas?project=789282956155" 
 }
}

2. the Pediaphon is fixed now

#3

Updated by Yannick Warnier almost 3 years ago

Could you then revert the options in this tool: first make Pediaphon available, then (as an alternative) the Google option? (instead of the opposite that is the current situation)

#4

Updated by Yannick Warnier almost 3 years ago

  • Assignee changed from Julio Montoya to Angel Quiroz
  • % Done changed from 0 to 50
#5

Updated by Yannick Warnier almost 3 years ago

  • Assignee changed from Angel Quiroz to Julio Montoya

Back to Julio (Angel was busy with the calculated answers today)

#6

Updated by Julio Montoya almost 3 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

Order changed.

#7

Updated by Yannick Warnier almost 3 years ago

  • Status changed from Assigned to Bug resolved
  • % Done changed from 50 to 100

Great!

#8

Updated by ashish kpaul almost 3 years ago

Chamilo V-1.10.x: Text to Speech shows 0 Bytes

#9

Updated by Yannick Warnier almost 3 years ago

Since the version from yesterday, the default generation method is with Pediaphon. This works. The Google method, however, requires to create a Google API and add it to the code (so non-functional for now, indeed, and it will be generating a 0B file).

Also available in: Atom PDF