Skip to content

Instantly share code, notes, and snippets.

@jfmherokiller
Created April 20, 2021 21:06
Show Gist options
  • Save jfmherokiller/a77a443e8e5cd0b9b54b041f50af4d17 to your computer and use it in GitHub Desktop.
Save jfmherokiller/a77a443e8e5cd0b9b54b041f50af4d17 to your computer and use it in GitHub Desktop.
oblivion dialog export csv to xvaSynth csv
$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