Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint to transcribe videos #554

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

Endpoint to transcribe videos #554

wants to merge 26 commits into from

Conversation

ekrojo77
Copy link
Contributor

@ekrojo77 ekrojo77 commented Dec 5, 2024

  • Testing
  • Endepunkt for å polle om filen er opprettet
  • Bedre return fra GET

case Success(_) => Right(())
case Failure(ex) => returnLeftError(ex)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beholder disse i første omgang før vi vet hva som trengs av endepunkt. Men tror det rene transcribe-endepunktet er det som vil bli mest brukt

@ekrojo77 ekrojo77 marked this pull request as ready for review December 13, 2024 10:37
@ekrojo77 ekrojo77 requested a review from a team December 13, 2024 10:37
@ekrojo77 ekrojo77 marked this pull request as draft December 13, 2024 13:53
@ekrojo77 ekrojo77 changed the title Endpoint to extract audio from brightcove files Endpoint to transcribe videos Dec 13, 2024
@ekrojo77 ekrojo77 marked this pull request as ready for review December 16, 2024 10:43
@ekrojo77 ekrojo77 marked this pull request as draft December 17, 2024 13:19
Copy link
Member

@gunnarvelle gunnarvelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lisenspirk

val brightcoveClient: NdlaBrightcoveClient

class NdlaBrightcoveClient {
private val authUrl = "https://oauth.brightcove.com/v4/access_token"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denne og videoSourceUrl endres nok ikkje, men kunne vore i AudioApiProperties.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La den i BaseProps i stedet, føltes litt stygt å trekke inn props fra audioApi til en common client

@ekrojo77 ekrojo77 marked this pull request as ready for review January 2, 2025 10:38
@@ -36,6 +37,13 @@ class AudioApiProperties extends BaseProps with DatabaseProps with StrictLogging
val StorageName: String = propOrElse("AUDIO_FILE_S3_BUCKET", s"$Environment.audio.ndla")
val StorageRegion: Option[String] = propOrNone("AUDIO_FILE_S3_BUCKET_REGION")

val TranscribeStorageName: String = propOrElse("TRANSCRIBE_FILE_S3_BUCKET_NAME", s"$Environment.transcribe.ndla")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kanskje bruke samme format som for filer.

Suggested change
val TranscribeStorageName: String = propOrElse("TRANSCRIBE_FILE_S3_BUCKET_NAME", s"$Environment.transcribe.ndla")
val TranscribeStorageName: String = propOrElse("TRANSCRIBE_FILE_S3_BUCKET", s"$Environment.transcribe.ndla")


val BrightcoveClientId: String = prop("BRIGHTCOVE_API_CLIENT_ID")
val BrightcoveClientSecret: String = prop("BRIGHTCOVE_API_CLIENT_SECRET")
val BrightcoveAccountId: String = prop("NDLA_BRIGHTCOVE_ACCOUNT_ID")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denne finnes allerede med dette navnet i secrets

Suggested change
val BrightcoveAccountId: String = prop("NDLA_BRIGHTCOVE_ACCOUNT_ID")
val BrightcoveAccountId: String = prop("BRIGHTCOVE_ACCOUNT_ID")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants