fixup tts_inference_job (python still needs writing)

This commit is contained in:
Brandon Thomas committed 2021-06-01 14:29:40 -04:00
1 parent a0919fffee
commit 86b9d2ecca
1 file changed
+3 -3
+3 -3
View File
@@ -361,7 +361,9 @@ async fn process_job(inferencer: &Inferencer, job: &TtsInferenceJobRecord) -> An
let temp_dir = format!("temp_tts_inference_{}", job.id);
let temp_dir = TempDir::new(&temp_dir)?; // NB: Exists until it goes out of scope.
let text_input_fs_path = None;
let text_input_fs_path = temp_dir.path().join("inference_input.txt");
std::fs::write(&text_input_fs_path, &job.inference_text)?;
// ==================== RUN INFERENCE ==================== //
@@ -369,8 +371,6 @@ async fn process_job(inferencer: &Inferencer, job: &TtsInferenceJobRecord) -> An
let output_metadata_fs_path = temp_dir.path().join("metadata.json");
let output_spectrogram_fs_path = temp_dir.path().join("spectrogram.json");
let is_image = w2l_template.template_type.contains("image");
info!("Running TTS inference...");
info!("Expected output audio filename: {:?}", &output_audio_fs_path);