added any length option and code to handle it
This commit is contained in:
parent
59da957a40
commit
7be8ebf5cc
@ -154,21 +154,24 @@ gui, add, text, y%GUIMargin% x%GUIRowTwoVerticalLineXPos% 0x11 h270 ; 0x11 is a
|
|||||||
Gui, font, Bold
|
Gui, font, Bold
|
||||||
Gui, Add, Text,x%GUIRowTwoXPos% y%GUIMargin% w200 center,Transcription Model
|
Gui, Add, Text,x%GUIRowTwoXPos% y%GUIMargin% w200 center,Transcription Model
|
||||||
Gui, font, normal ; , Param2, Param3, Param4]
|
Gui, font, normal ; , Param2, Param3, Param4]
|
||||||
|
|
||||||
; Gui, Add, Radio
|
; Gui, Add, Radio
|
||||||
Gui, Add, Checkbox,y+%GUImargin% vTinyM checked%TinyM% , Tiny (75 MB Disk, ~125 MB RAM)
|
|
||||||
Gui, Add, Checkbox, vBaseM checked%BaseM%, Base (142 MB Disk, ~210 MB RAM)
|
Gui, Add, Checkbox, vBaseM checked%BaseM%, Base (142 MB Disk, ~210 MB RAM)
|
||||||
Gui, Add, Checkbox, vSmallM checked%SmallM%, Small (466 MB Disk, ~600 MB RAM)
|
Gui, Add, Checkbox, vSmallM checked%SmallM%, Small (466 MB Disk, ~600 MB RAM)
|
||||||
Gui, Add, Checkbox, vMediumM checked%MediumM%, Medium (1.5 GB Disk, ~1.7 GB RAM)
|
Gui, Add, Checkbox, vMediumM checked%MediumM%, Medium (1.5 GB Disk, ~1.7 GB RAM)
|
||||||
Gui, Add, Checkbox, vLargeM checked%LargeM% ,Large (2.9 GB Disk, ~3.3 GB RAM)
|
Gui, Add, Checkbox, vLargeM checked%LargeM% ,Large (2.9 GB Disk, ~3.3 GB RAM)
|
||||||
; Gui, Add, Checkbox, vAllMQualities checked%AllMQualities%, ALL (One by One)
|
Gui, Add, Checkbox, vAllMQualities checked%AllMQualities%, ALL (One by One)
|
||||||
|
|
||||||
Gui, Font, Bold
|
Gui, Font, Bold
|
||||||
Gui, Add, Text,x%GUIRowTwoXPos% y+15 w200 center,Length of Podcasts to Transcribe
|
Gui, Add, Text,x%GUIRowTwoXPos% y+15 w200 center,Length of Podcasts to Transcribe
|
||||||
Gui, font, normal
|
Gui, font, normal
|
||||||
|
Gui, Add, Checkbox, vAnyLengthMediaFile gUpdateGUI checked%AnyLengthMediaFileCheckStatus%, ANY Length
|
||||||
Gui, Add, Checkbox,y+%GUIMargin% gUpdateGUI vShortPodcasts checked%ShortPodcastsCheckStatus%, Short ( < 30 Mins)
|
Gui, Add, Checkbox,y+%GUIMargin% gUpdateGUI vShortPodcasts checked%ShortPodcastsCheckStatus%, Short ( < 30 Mins)
|
||||||
Gui, Add, Checkbox, vMediumPodcasts gUpdateGUI checked%MediumPodcastsCheckStatus%, Medium (30-60 Mins)
|
Gui, Add, Checkbox, vMediumPodcasts gUpdateGUI checked%MediumPodcastsCheckStatus%, Medium (30-60 Mins)
|
||||||
Gui, Add, Checkbox, vLongPodcasts gUpdateGUI checked%LongPodcastsCheckStatus%, Long ( > 60 Mins)
|
Gui, Add, Checkbox, vLongPodcasts gUpdateGUI checked%LongPodcastsCheckStatus%, Long ( > 60 Mins)
|
||||||
|
|
||||||
|
|
||||||
; Gui, Add, Text
|
; Gui, Add, Text
|
||||||
Gui, Font, Bold
|
Gui, Font, Bold
|
||||||
Gui, Add, Text,x%GUIRowTwoXPos% y+15 w200 center,Other Settings
|
Gui, Add, Text,x%GUIRowTwoXPos% y+15 w200 center,Other Settings
|
||||||
@ -399,6 +402,8 @@ TranscriptionLengthsSelected :=
|
|||||||
(ShortPodcasts)?(TranscriptionLengthsSelected .= "Short|"):("")
|
(ShortPodcasts)?(TranscriptionLengthsSelected .= "Short|"):("")
|
||||||
(MediumPodcasts)?(TranscriptionLengthsSelected .= "Medium|"):("")
|
(MediumPodcasts)?(TranscriptionLengthsSelected .= "Medium|"):("")
|
||||||
(LongPodcasts)?(TranscriptionLengthsSelected .= "Long|"):("")
|
(LongPodcasts)?(TranscriptionLengthsSelected .= "Long|"):("")
|
||||||
|
(AnyLengthMediaFile)?(TranscriptionLengthsSelected .= "AnyLengthMediaFile|"):("")
|
||||||
|
|
||||||
|
|
||||||
if(TranscriptionLengthsSelected = ""){
|
if(TranscriptionLengthsSelected = ""){
|
||||||
ToolTip
|
ToolTip
|
||||||
@ -507,6 +512,10 @@ loop % SelectedAudioFilesArray.Length() {
|
|||||||
TotalTimeInSeconds := ((AudioLengthArray[1] * 60 ) * 60) + (AudioLengthArray[2] * 60) + AudioLengthArray[3]
|
TotalTimeInSeconds := ((AudioLengthArray[1] * 60 ) * 60) + (AudioLengthArray[2] * 60) + AudioLengthArray[3]
|
||||||
|
|
||||||
|
|
||||||
|
if(AnyLengthMediaFile){
|
||||||
|
; continue onwards
|
||||||
|
}
|
||||||
|
else, { ; otherwise check length and skip accordingly
|
||||||
if(ShortPodcasts){
|
if(ShortPodcasts){
|
||||||
if(TotalTimeInSeconds > 1860){ ; greater than 31 minutes
|
if(TotalTimeInSeconds > 1860){ ; greater than 31 minutes
|
||||||
Text = Podcast is longer than 30 minutes. Skipping
|
Text = Podcast is longer than 30 minutes. Skipping
|
||||||
@ -537,7 +546,7 @@ loop % SelectedAudioFilesArray.Length() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(FileExist(WavFilepath)){ ; re-use previously converted wav file if it exists
|
if(FileExist(WavFilepath)){ ; re-use previously converted wav file if it exists
|
||||||
|
Loading…
Reference in New Issue
Block a user