vikit.prompt.recorded_prompt

Overview

Classes

RecordedPrompt

A class to represent a prompt generated from a recorded audio file. You may want to use this class

Classes

class vikit.prompt.recorded_prompt.RecordedPrompt(audio_recording=None, subtitles=None, duration=None, text=None, build_settings: vikit.prompt.prompt_build_settings.PromptBuildSettings = PromptBuildSettings())

Bases: vikit.prompt.prompt.Prompt

A class to represent a prompt generated from a recorded audio file. You may want to use this class to generate a prompt from a recorded audio file, like a podcast or a video soundtrack (e.g. a musical video clip)

Overview

Methods

convert_recorded_audio_prompt_path_to_mp3(recorded_audio_prompt_path, prompt_mp3_file_name)

Convert the recorded audio prompt to mp3

get_full_text()

Returns the full text of the prompt

Members

async convert_recorded_audio_prompt_path_to_mp3(recorded_audio_prompt_path: str, prompt_mp3_file_name=None)

Convert the recorded audio prompt to mp3

Parameters:
  • recorded_audio_prompt_path -- The path to the recorded audio file

  • prompt_mp3_file_name -- The name of the mp3 file to save the recording as

get_full_text() str

Returns the full text of the prompt