Skip to content

Commit

Permalink
Merge pull request #269 from watson-developer-cloud/4914-new-acoustic…
Browse files Browse the repository at this point in the history
…-resource

Update acoustic resource
  • Loading branch information
mediumTaj authored Jul 20, 2018
2 parents dfcde43 + 5dc3089 commit f07a624
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class SpeechToTextServiceExample
//private string _corpusPath = @"SpeechToTextTestData/theJabberwocky-utf8.txt";
private string _acousticModelName = "dotnet-integration-test-custom-acoustic-model";
private string _acousticModelDescription = "A custom model to teset .NET SDK Speech to Text acoustic customization.";
private string _acousticResourceUrl = "https://ia802302.us.archive.org/10/items/Greatest_Speeches_of_the_20th_Century/TheFirstAmericaninEarthOrbit.mp3";
private string _acousticResourceUrl = "https://archive.org/download/Greatest_Speeches_of_the_20th_Century/KeynoteAddressforDemocraticConvention_64kb.mp3";
//private string _acousticResourcePath = @"SpeechToTextTestData/TheFirstAmericaninEarthOrbit.mp3";
private string _acousticResourceName = "firstOrbit";
private string _acousticResourceMimeType = "audio/mpeg";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,6 @@ public BaseModel TrainAcousticModel(string customizationId, string customLanguag
restRequest.WithArgument("custom_language_model_id", customLanguageModelId);
if (customData != null)
restRequest.WithCustomData(customData);
restRequest.WithArgument("force", true);
result = restRequest.As<BaseModel>().Result;
if(result == null)
result = new BaseModel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class SpeechToTextServiceIntegrationTest
private string _corpusPath = @"SpeechToTextTestData/theJabberwocky-utf8.txt";
private string _acousticModelName = "dotnet-integration-test-custom-acoustic-model";
private string _acousticModelDescription = "A custom model to teset .NET SDK Speech to Text acoustic customization.";
private string _acousticResourceUrl = "https://ia802302.us.archive.org/10/items/Greatest_Speeches_of_the_20th_Century/TheFirstAmericaninEarthOrbit.mp3";
private string _acousticResourceUrl = "https://archive.org/download/Greatest_Speeches_of_the_20th_Century/KeynoteAddressforDemocraticConvention_64kb.mp3";
private string _acousticResourceName = "firstOrbit";
private string _acousticResourceMimeType = "audio/mpeg";
private SpeechToTextService _service;
Expand Down

0 comments on commit f07a624

Please sign in to comment.