Skip to content

Commit

Permalink
feat(tportal): add WhisperX to the list of supported ASR providers
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Jun 14, 2024
1 parent 8028f41 commit 3c09908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/transcription-portal/src/app/shared/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class SettingsService {
}[] = [];

jQuery.each(basASRInfoContainers, (key, elem) => {
const name = jQuery(elem).attr('data-bas-asr-info-provider-name');
const isStringNumber = (str: string) => !isNaN(Number(str));
const sanitizeNumberValue = (el: any, attr: string) => {
if (el[attr] && isStringNumber(el[attr])) {
Expand All @@ -86,7 +87,7 @@ export class SettingsService {
dataStoragePolicy?: string,
knownIssues?: string
} = {
name: jQuery(elem).attr('data-bas-asr-info-provider-name'),
name,
maxSignalDuration: Number(jQuery(elem).find('.bas-asr-info-max-signal-duration-seconds').attr('data-value')),
maxSignalSize: Number(jQuery(elem).find('.bas-asr-info-max-signal-size-megabytes').attr('data-value')),
quotaPerMonth: Number(jQuery(elem).find('.bas-asr-info-quota-per-month-seconds').attr('data-value')),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3c09908

Please sign in to comment.