File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
src/IBM.Watson.TextToSpeech.v1/Test/Integration Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -541,6 +541,34 @@ public void testGetSpeakerModel()
541541 ) ;
542542 }
543543 }
544+
545+ [ TestMethod ]
546+ public void testDeleteSpeakerModel ( )
547+ {
548+ service . WithHeader ( "X-Watson-Test" , "1" ) ;
549+ MemoryStream ms = new MemoryStream ( ) ;
550+ FileStream fs = File . OpenRead ( wavFile ) ;
551+
552+ fs . CopyTo ( ms ) ;
553+
554+ var speakerModel = service . CreateSpeakerModel (
555+ speakerName : "speakerNameDotNet" ,
556+ audio : ms
557+ ) ;
558+
559+ string speakerId = speakerModel . Result . SpeakerId ;
560+ Assert . IsNotNull ( speakerModel . Result . SpeakerId ) ;
561+
562+ var response = service . GetSpeakerModel (
563+ speakerId : speakerId
564+ ) ;
565+
566+ Assert . IsNotNull ( response . Result . Customizations ) ;
567+
568+ service . DeleteSpeakerModel (
569+ speakerId : speakerId
570+ ) ;
571+ }
544572 #endregion
545573 }
546574}
You can’t perform that action at this time.
0 commit comments