Skip to content

Commit

Permalink
Merge pull request #21 from stefanocoretta/separate_sp
Browse files Browse the repository at this point in the history
Create sound folder when maintaining separate files
  • Loading branch information
santiagobarreda committed Jun 16, 2023
2 parents 49dce84 + 6bf6a07 commit fc20bd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Fast Track/functions/tools/extractVowelswithTG.praat
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ for filecounter from 1 to nfiles

if maintain_separate == 1
createDirectory: output_folder$ + "/" + basename$
createDirectory: output_folder$ + "/" + basename$ + "/sounds"
endif
if maintain_separate == 0
createDirectory: output_folder$ + "/sounds"
Expand All @@ -248,9 +249,9 @@ for filecounter from 1 to nfiles

if maintain_separate == 1
selectObject: file_info
Save as comma-separated file: output_folder$ + "/"+ basename$+ "_file_information.csv"
Save as comma-separated file: output_folder$ + "/"+ basename$ + "/" + "file_information.csv"
selectObject: tbl
Save as comma-separated file: output_folder$ + "/"+ basename$+ "_segmentation_info.csv"
Save as comma-separated file: output_folder$ + "/"+ basename$ + "/" + "segmentation_info.csv"
endif

selectObject: tbl
Expand Down Expand Up @@ -304,4 +305,4 @@ nocheck Save as comma-separated file: vowels_file$
removeObject: vwl_tbl, obj, "Table all_tbl", "Table all_file_info"
nocheck removeObject: stresses

endproc
endproc
2 changes: 1 addition & 1 deletion Fast Track/functions/utils/extractVowels.praat
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ procedure extractVowels
endif

if maintain_separate == 1
Save as WAV file: output_folder$ + "/" + basename$ + "/" + filename$ + ".wav"
Save as WAV file: output_folder$ + "/" + basename$ + "/sounds/" + filename$ + ".wav"
endif
if maintain_separate == 0
Save as WAV file: output_folder$ + "/sounds/" + filename$ + ".wav"
Expand Down

0 comments on commit fc20bd3

Please sign in to comment.