Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class CompareComply extends BaseService {
private static final String DEFAULT_SERVICE_NAME = "compare_comply";

private static final String DEFAULT_SERVICE_URL =
"https://gateway.watsonplatform.net/compare-comply/api";
"https://api.us-south.compare-comply.watson.cloud.ibm.com";

private String versionDate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public boolean ping() throws RuntimeException {
@Test
public void exampleIsSuccessful() {
// Discovery discovery = new Discovery("2016-12-15");
// discovery.setServiceUrl("https://gateway.watsonplatform.net/discovery/api");
// discovery.setServiceUrl("https://api.us-south.discovery.watson.cloud.ibm.com");
// discovery.setUsernameAndPassword("<username>", "<password");
String environmentId = null;
String configurationId = null;
Expand Down Expand Up @@ -363,7 +363,7 @@ public void badCredentialsThrowsException() {
/** Ping bad url throws exception. */
@Test(expected = NotFoundException.class)
public void pingBadUrlThrowsException() {
discovery.setServiceUrl("https://gateway.watsonplatform.net/discovery-foo/api");
discovery.setServiceUrl("https://api.us-south.discovery.watson.cloud.ibm.com/discovery-foo");
ping();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"classifier_id": "47C164-nlc-243",
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/47C164-nlc-243",
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/47C164-nlc-243",
"text": "is it hot ?",
"top_class": "temperature",
"classes": [
Expand All @@ -13,4 +13,4 @@
"confidence": 0.018102824692296068
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"classifier_id" : "10D41B-nlc-1",
"url" : "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/10D41B-nlc-1",
"url" : "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/10D41B-nlc-1",
"collection" : [ {
"text" : "How hot will it be today?",
"top_class" : "temperature",
Expand All @@ -22,4 +22,4 @@
"confidence" : 0
} ]
} ]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"classifier_id": "5E00F7x2-nlc-507",
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/5E00F7x2-nlc-507",
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/5E00F7x2-nlc-507",
"name": "Music controls",
"language": "en",
"created": "2015-10-17T20:56:29.974Z"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"classifiers": [
{
"classifier_id": "47C164-nlc-243",
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/47C164-nlc-243",
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/47C164-nlc-243",
"name": "weather",
"language": "en",
"created": "2015-08-24T18:42:25.324Z"
},
{
"classifier_id": "5E00F7x2-nlc-507",
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/5E00F7x2-nlc-507",
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/5E00F7x2-nlc-507",
"name": "Music controls",
"language": "en",
"created": "2015-10-17T20:56:29.974Z"
}
]
}
}
2 changes: 1 addition & 1 deletion speech-to-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ System.out.println(transcript);

#### WebSocket support

Speech to Text supports WebSocket, the url is: `wss://stream.watsonplatform.net/speech-to-text/api/v1/recognize`
Speech to Text supports WebSocket, the url is: `wss://api.us-south.speech-to-text.watson.cloud.ibm.com/v1/recognize`

```java
Authenticator authenticator = new IamAuthenticator("<iam_api_key>");
Expand Down
2 changes: 1 addition & 1 deletion speech-to-text/src/test/resources/speech_to_text/jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"id": "2d0ef860-872e-11e6-90d3-5f28bc58ceb2",
"status": "processing",
"created": "2016-09-30T16:51:47.558",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/recognitions/2d0ef860-872e-11e6-90d3-5f28bc58ceb2"
"url": "https://api.us-south.speech-to-text.watson.cloud.ibm.com/v1/recognitions/2d0ef860-872e-11e6-90d3-5f28bc58ceb2"
}, {
"id": "2d0ef860-872e-11e6-90d3-5f28bc58ceb2",
"results": [{
Expand Down