Conversation
Codecov Report
@@ Coverage Diff @@
## next #332 +/- ##
==========================================
- Coverage 38.39% 38.05% -0.34%
==========================================
Files 25 25
Lines 8720 9141 +421
==========================================
+ Hits 3348 3479 +131
- Misses 5372 5662 +290
Continue to review full report at Codecov.
|
mkistler
left a comment
There was a problem hiding this comment.
Looks good but we need to be more careful about maintaining compatibility. We should also eliminate the duplicate accept parameter.
|
|
||
| :param str text: The text to synthesize. | ||
| :param str accept: The requested audio format (MIME type) of the audio. You can use this header or the `accept` query parameter to specify the audio format. (For the `audio/l16` format, you can optionally specify `endianness=big-endian` or `endianness=little-endian`; the default is little endian.). | ||
| :param str accept2: The requested audio format (MIME type) of the audio. You can use this query parameter or the `Accept` header to specify the audio format. (For the `audio/l16` format, you can optionally specify `endianness=big-endian` or `endianness=little-endian`; the default is little endian.). |
There was a problem hiding this comment.
We should ignore the accept query parameter -- it duplicates the function of the accept header parameter, and the header parameter is the better approach.
| return self.request(method='GET', url='/v1/customizations', | ||
| params=params, accept_json=True) | ||
|
|
||
| def get_customization(self, customization_id): |
There was a problem hiding this comment.
It will break compatibility to remove these methods, and I think that's a problem. Why not leave them? I don't think they conflict with any of the generated methods. Maybe we can mark them as deprecated, and add comments recommending the new method names. That will set us up to remove them in the next major release.
|
We can use Python's |
mkistler
left a comment
There was a problem hiding this comment.
I have some misgivings about including beta methods in the main file of the SDK, but we may be down that road too far to change it now.
| # Copyright 2016 IBM All Rights Reserved. | ||
| # coding: utf-8 | ||
|
|
||
| # Copyright 2017 IBM All Rights Reserved. |
There was a problem hiding this comment.
Copyright should be 2018 now, or '2017,2018'.
| The v1 Text to Speech service | ||
| (https://www.ibm.com/watson/developercloud/text-to-speech.html) | ||
| For more information about the service and its various interfaces, see [About Text to | ||
| Speech](https://console.bluemix.net/docs/services/text-to-speech/index.html). |
There was a problem hiding this comment.
The link to "console.bluemix.net" is going to be deprecated very soon.
| Retrieves all voices available for speech synthesis. | ||
|
|
||
| Lists information about all available voices. To see information about a specific | ||
| voice, use the `GET /v1/voices/{voice}` method. |
There was a problem hiding this comment.
We need to work on removing the REST details from descriptions.
| def pronunciation(self, text, voice=None, pronunciation_format='ipa'): | ||
| @deprecated('Use list_voices() instead') | ||
| def voices(self): | ||
| return self.list_voices() |
| You can request the pronunciation for a specific format. You can also request the | ||
| pronunciation for a specific voice to see the default translation for the language | ||
| of that voice or for a specific custom voice model to see the translation for that | ||
| voice model. **Note:** This method is currently a beta release. |
There was a problem hiding this comment.
Should we exclude get_pronunciation from the SDK if it is still beta? Or should we mark it in some special way?
| as defined in the model. To see just the metadata for a voice model, use the `GET | ||
| /v1/customizations` method. You must use credentials for the instance of the | ||
| service that owns a model to list information about it. **Note:** This method is | ||
| currently a beta release. |
| you own for all languages. To see the words in addition to the metadata for a | ||
| specific voice model, use the `GET /v1/customizations/{customization_id}` method. | ||
| You must use credentials for the instance of the service that owns a model to list | ||
| information about it. **Note:** This method is currently a beta release. |
| """ | ||
| Translation. | ||
|
|
||
| :attr str translation: The phonetic or sounds-like translation for the word. A phonetic translation is based on the SSML format for representing the phonetic string of a word either as an IPA translation or as an IBM SPR translation. A sounds-like is one or more words that, when combined, sound like the word. |
There was a problem hiding this comment.
Translation.translation is going to cause problems for C#.
| """ | ||
| VoiceModels. | ||
|
|
||
| :attr list[VoiceModel] customizations: An array of `VoiceModel` objects that provides information about each available custom voice model. The array is empty if the requesting service credentials own no custom voice models (if no language is specified) or own no custom voice models for the specified language. |
There was a problem hiding this comment.
Seems like we want this to be named voiceModels and not customizations. I think this would be as simple as adding an x-alternate-name annotation to the swagger.
Rename Bluemix to IBM Cloud
This reverts commit f7ac60a.
Summary
Text to Speechfrom the latest swaggerget_voice