Skip to content

Commit

Permalink
Attempt to auto detect language for transcription
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerX committed Mar 19, 2024
1 parent dbc89ba commit 75b1e5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions workflows/ingest/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ func createPreviewsAsync(ctx workflow.Context, assetIDs []string) []workflow.Chi
}

func transcribe(ctx workflow.Context, assetIDs []string, language string) error {
if language == "" {
language = "no"
}

var wfFutures []workflow.ChildWorkflowFuture
for _, id := range assetIDs {
wfFutures = append(wfFutures, workflow.ExecuteChildWorkflow(ctx, workflows.TranscribeVX, workflows.TranscribeVXInput{
Expand Down
4 changes: 0 additions & 4 deletions workflows/ingest/raw_material.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ func RawMaterial(ctx workflow.Context, params RawMaterialParams) (map[string]pat
return nil, err
}

if params.Language == "" {
params.Language = "auto"
}

files := []paths.Path{}
for _, f := range params.FilesToIngest {
if !utils.ValidRawFilename(f.Local()) {
Expand Down

0 comments on commit 75b1e5c

Please sign in to comment.