KNERD
Well-Known Member
- Joined
- Mar 9, 2014
- Messages
- 2,051
- Reaction score
- 791
On this page, is how to setup the TTS
FusionPBX on Steroids: Text to Speech Apps Have arrived.
I set it all up, and ran the ./nv-news-update.sh file.
I am getting the news text showing, then the following appears.
Using tcpdump, I can see outgoing connections being made to media-router1.prod.media.vip.gq1.yahoo.com.https and c6.e3.30a9.ip4.static.sl-reverse.com.https, but nothing for the IBM Cloud URL of https://stream.watsonplatform.net/text-to-speech/api
Any ideas on this?
EDIT: After some further digging, I am making connections to watsonplatform.net via sl-reverse.com.
I made tcpdump give me more details which showed me this.
So I decided to visit the URL directly, and enter my credentials there. FAIL. It seems the credentials for https://cloud.ibm.com/ and https://stream.watsonplatform.net/text-to-speech/api do not seem to be the same.
What credentials go in the file ibm-credentials.php at fields $IBM_username and $IBM_password ?
EDIT 2:
I somewhat found what I was looking for.
According to some help page "Important:The "username" and "password" in the service credentials are different from your IBM Cloud account IBMid and password."
According to this guide: https://cloud.ibm.com/docs/services/watson?topic=watson-creating-credentials#creating-credentials
EDIT 3:
Off to the left of the service instance of TTS, I see "Service Credentials"
Clicking on that reveals some information, but confusing a bit (info scrubbed of course)
apikey is obvious, but the other not so much.
FusionPBX on Steroids: Text to Speech Apps Have arrived.
I set it all up, and ran the ./nv-news-update.sh file.
I am getting the news text showing, then the following appears.
News Headlines written to /tmp/news.txt
Building TTS file...
/usr/bin/sox WARN mp3-util: MAD lost sync
/usr/bin/sox FAIL formats: can't open input file `/tmp/news.mp3':
Using tcpdump, I can see outgoing connections being made to media-router1.prod.media.vip.gq1.yahoo.com.https and c6.e3.30a9.ip4.static.sl-reverse.com.https, but nothing for the IBM Cloud URL of https://stream.watsonplatform.net/text-to-speech/api
Any ideas on this?
EDIT: After some further digging, I am making connections to watsonplatform.net via sl-reverse.com.
I made tcpdump give me more details which showed me this.
So I decided to visit the URL directly, and enter my credentials there. FAIL. It seems the credentials for https://cloud.ibm.com/ and https://stream.watsonplatform.net/text-to-speech/api do not seem to be the same.
What credentials go in the file ibm-credentials.php at fields $IBM_username and $IBM_password ?
EDIT 2:
I somewhat found what I was looking for.
According to some help page "Important:The "username" and "password" in the service credentials are different from your IBM Cloud account IBMid and password."
According to this guide: https://cloud.ibm.com/docs/services/watson?topic=watson-creating-credentials#creating-credentials
When I do the "Show Credentials," I only see an API key and URL for the TTS Resource.Getting Cloud Foundry service credentials
To access API methods by using Cloud Foundry service credentials, you must first collect the credentials. You can access the service credentials from the IBM Cloud web interface.
- Log in to IBM Cloud
.
- Go to your resource list
.
- Select a service instance.
- Click Show Credentials to see the Username, Password, and Url for the credentials.
EDIT 3:
Off to the left of the service instance of TTS, I see "Service Credentials"
Clicking on that reveals some information, but confusing a bit (info scrubbed of course)
Code:
{
"apikey":
"iam_apikey_description": "Auto generated apikey during resource-key operation for Instance
"iam_apikey_name": ,
"iam_role_crn": "crn:v1:bluemix:public:iam::::serviceRole:Manager",
"iam_serviceid_crn": "crn:v1:bluemix:public:iam-identity::
"url": "https://stream.watsonplatform.net/text-to-speech/api"
}
apikey is obvious, but the other not so much.
Last edited: