WIP: refactoring..., src id default bug fix

This commit is contained in:
wataru 2023-02-19 20:05:32 +09:00
parent a5d4b5dfe2
commit d0eef70109
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -24,6 +24,7 @@ export const useSpeakerSetting = () => {
const dst = appState.clientSetting.clientSetting.correspondences?.find(x => {
return x.sid == dstId
})
console.log("calcDefaultF0Factor", srcId, dstId, src, dst)
const recommendedF0Factor = dst && src ? dst.correspondence / src.correspondence : 0
return recommendedF0Factor
}

View File

@ -87,8 +87,8 @@ class MockStream:
@dataclass
class VocieChangerSettings():
gpu: int = 0
srcId: int = 107
dstId: int = 100
srcId: int = 0
dstId: int = 101
inputSampleRate: int = 48000 # 48000 or 24000