FOOD FOR THOUGHT FusionPBX on Steroids: Not working out

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.

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


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.

  1. Log in to IBM Cloud .
  2. Go to your resource list .
  3. Select a service instance.
  4. Click Show Credentials to see the Username, Password, and Url for the credentials.
When I do the "Show Credentials," I only see an API key and URL for the TTS Resource.

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:
Hey @wardmundy , sorry to say, but I think your scripts are now outdated.

Watson services that are created in a resource group or are migrated from Cloud Foundry to a resource group use IAM authentication. By default, all new Watson services use IAM authentication. For more information about resource groups and IAM authentication, see Authenticating with IAM tokens.

https://cloud.ibm.com/docs/services/watson?topic=watson-creating-credentials#creating-credentials'

In addition, on the TTS dashboard tutorial section, there is a note:

The tutorial uses IBM® Cloud Identity and Access Management (IAM) API keys for authentication. Older service instances might continue to use the {username} and {password} from their existing Cloud Foundry service credentials for authentication. Authenticate by using the approach that is right for your service instance. For more information about the service's use of IAM authentication, see the 30 October 2018 service update in the release notes
 
Last edited:
As I understand where we are based upon the note at the end of your comment above, you still can use "apikey" as your username and your actual APIkey as your password. As of last week, it still worked for me.
 
As I understand where we are based upon the note at the end of your comment above, you still can use "apikey" as your username and your actual APIkey as your password. As of last week, it still worked for me.

With your clarification, now I can see the problem.

Your blog is out of date then.

When your Text to Speech application displays, click Service Credentials and then click New Credential (+). When the Add New Credential dialog appears, leave the default settings as they are and click Add. Your Credentials Listing then will appear. Click View Credentials beside the new entry you just created. Write down your URL, username, and password. You’ll need these in Step #4 below to configure the IBM Bluemix TTS service.

They no longer are providing the username and password, and it does not mention what you have written in your reply here about using username "apikey" and the API Key as the password.

In fact the interface has also changed, so your images are also outdated. Changes are coming in faster and faster these days. :)


Thanks for the clarification. It is working out now.
 

Members online

Forum statistics

Threads
26,688
Messages
174,412
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top