> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.rask.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Redubbing

> The steps to edit and redub your project

<Note>
  Minutes for re-dubbing are charged only for the modified and added segments, based on their combined length.

  For example, if you modified two segments that are 15 and 20 seconds long, and added a new segment that is 10 seconds long, their durations will be combined (15+20+10 = 45 seconds in total) before calculating the total minutes charged when regenerating the project.

  The combined duration in seconds is then rounded up to the closest full minute for charges, for example:

  * 0:01 to 0:59 = 1 minute
  * 1:01 to 1:29 = 1 minute
  * 1:30 to 1:59 = 2 minutes

  This calculation is performed every time when [generate project method](/api-reference/project/generate_project) is called.
</Note>

<Tabs>
  <Tab title="Add segments">
    ### Add new segments and redub project

    <Steps>
      <Step title="Add segment">
        Use your `project_id` and [add segments endpoint](/api-reference/project/add_segments) to add new segments

        * if you have added only source text, the status of segment will switch to `processing` while we are translating original text to target langauge. Once translated, the status will switch to `updated`
        * if you have added translated text, the status of segment will switch to `updated`
          Obtain `segment_id` from the successful response to your request.
      </Step>

      <Step title="Check segments status">
        Use `project_id` along with `segment_id` and [get transcription endpoint](/api-reference/project/get_transcription) to check segment's status and make sure all added segments are in `updated` status before proceeding
      </Step>

      <Step title="Redub project">
        To apply changes to voiceover in your project, redub it using `project_id` and [generate project endpoint](/api-reference/project/generate_project)
      </Step>

      <Step title="Check project status">
        Check the status of your project and it's artifacts (translated video, voiceover etc.) by using [get project endpoint](/api-reference/project/get_project). You can download any artifacts from the links provided in the response.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Edit segments">
    ### Edit existing segments and redub project

    <Steps>
      <Step title="Get segment_id">
        Get your project's transcription by using `project_id` and [get transcription endpoint](/api-reference/project/get_transcription) to obtain `segment_id`
      </Step>

      <Step title="Update segments">
        Update the segment(s) by using `segment_id` and [patch segments endpoint](/api-reference/project/patch_segment)

        * if you have updated source text, the status of segment will switch to `processing` while we are translating updated text to target langauge. Once translated, the status will switch to `updated`
        * if you have updated translated text or timestamps, the status of segment will switch to `updated`
      </Step>

      <Step title="Check segments status">
        Use `project_id` along with `segment_id` and [get transcription endpoint](/api-reference/project/get_transcription) to check segment's status and make sure all modified segments are in `updated` status before proceeding
      </Step>

      <Step title="Redub project">
        To apply changes to voiceover in your project, redub it using `project_id` and [generate project endpoint](/api-reference/project/generate_project)
      </Step>

      <Step title="Check project status">
        Check the status of your project and it's artifacts (translated video, voiceover etc.) by using [get project endpoint](/api-reference/project/get_project). You can download any artifacts from the links provided in the response.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Delete segment">
    ### Delete extra segments and redub project

    <Steps>
      <Step title="Get segment_id">
        Get your project's transcription by using `project_id` and [get transcription endpoint](/api-reference/project/get_transcription) to obtain `segment_id`
      </Step>

      <Step title="Delete segment">
        Use `segment_id` and [delete segment endpoint](/api-reference/project/delete_segment) to delete the segment
      </Step>

      <Step title="Redub project">
        To apply changes to voiceover in your project, redub it using `project_id` and [generate project endpoint](/api-reference/project/generate_project)
      </Step>

      <Step title="Check project status">
        Check the status of your project and it's artifacts (translated video, voiceover etc.) by using [get project endpoint](/api-reference/project/get_project). You can download any artifacts from the links provided in the response.
      </Step>
    </Steps>
  </Tab>
</Tabs>
