Created
April 20, 2021 21:06
-
-
Save jfmherokiller/a77a443e8e5cd0b9b54b041f50af4d17 to your computer and use it in GitHub Desktop.
oblivion dialog export csv to xvaSynth csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DialogPieces = Import-Csv .\exportDialog.txt -Delimiter "`t" | |
$xVASynthSample = Import-Csv D:\Modding\xVASynth-win32-x64\resources\app\batch\sample.csv -Delimiter "," | |
$fakeString = "" | |
$fakeString.R | |
$DialogPieces | ForEach-Object { | |
$filePath = $_.File | |
$Textstring = $_.Text | |
if(($null -ne $Textstring) -and ("" -ne $Textstring)) { | |
$filePath = $filePath.Replace("\","/") | |
$Textstring = $Textstring.Replace(",&sUActnQuick1;","") | |
$newRow = New-Object PsObject -Property @{ game_id = 'oblivion' ; voice_id = 'ob_femalenords'; text = $Textstring; vocoder=""; out_path="."+$filePath+".wav"; pacing=1 } | |
$xVASynthSample += $newRow | |
} | |
} | |
$xVASynthSample | Export-Csv "test.csv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment