Before consolidated main

This commit is contained in:
Michael Hansen
2023-01-09 16:35:32 -06:00
parent 6c949aa5c5
commit dfa03d80e6
3 changed files with 7 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ void synthesize(SynthesisConfig &synthesisConfig, ModelSession &session,
if (synthesisConfig.speakerId) {
// Add speaker id
vector<int64_t> speakerId{(int64_t)synthesisConfig.speakerId.value()};
vector<int64_t> speakerIdShape{1};
vector<int64_t> speakerIdShape{(int64_t)speakerId.size()};
inputTensors.push_back(Ort::Value::CreateTensor<int64_t>(
memoryInfo, speakerId.data(), speakerId.size(), speakerIdShape.data(),
speakerIdShape.size()));