File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -248,10 +248,11 @@ def generate_voice(
248
248
config : dict = {},
249
249
callback_url : Optional [str ] = None ,
250
250
) -> Audio :
251
- """Generate text to speech audio .
251
+ """Generate voice from text .
252
252
253
- :param str text: Text to convert to speech
254
- :param dict config: Configuration for the text to speech generation
253
+ :param str text: Text to convert to voice
254
+ :param str voice_name: Name of the voice to use
255
+ :param dict config: Configuration for the voice generation
255
256
:param str callback_url: URL to receive the callback (optional)
256
257
:return: :class:`Audio <Audio>` object
257
258
:rtype: :class:`videodb.audio.Audio`
@@ -272,6 +273,14 @@ def generate_voice(
272
273
def dub_video (
273
274
self , video_id : str , language_code : str , callback_url : Optional [str ] = None
274
275
) -> Video :
276
+ """Dub a video.
277
+
278
+ :param str video_id: ID of the video to dub
279
+ :param str language_code: Language code to dub the video to
280
+ :param str callback_url: URL to receive the callback (optional)
281
+ :return: :class:`Video <Video>` object
282
+ :rtype: :class:`videodb.video.Video`
283
+ """
275
284
dub_data = self ._connection .post (
276
285
path = f"{ ApiPath .collection } /{ self .id } /{ ApiPath .generate } /{ ApiPath .video } /{ ApiPath .dub } " ,
277
286
data = {
Original file line number Diff line number Diff line change @@ -255,12 +255,12 @@ def translate_transcript(
255
255
additional_notes : str = "" ,
256
256
callback_url : Optional [str ] = None ,
257
257
) -> List [dict ]:
258
- """Translate transcript of a video to a language.
258
+ """Translate transcript of a video to a given language.
259
259
260
- :param str language: Language to translate the subtitles to
260
+ :param str language: Language to translate the transcript
261
261
:param str additional_notes: Additional notes for the style of language
262
262
:param str callback_url: URL to receive the callback (optional)
263
- :return: List of translated subtitles
263
+ :return: List of translated transcript
264
264
:rtype: List[dict]
265
265
"""
266
266
translate_data = self ._connection .post (
You can’t perform that action at this time.
0 commit comments