-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from ryunix/add-fetch-presets
- Loading branch information
Showing
4 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { preset as presetT } from "./types/preset"; | ||
|
||
// preset | ||
export class preset { | ||
public id: number; | ||
public name: string; | ||
public speaker_uuid: string; | ||
public style_id: number; | ||
public speedScale: number; | ||
public pitchScale: number; | ||
public intonationScale: number; | ||
public volumeScale: number; | ||
public prePhonemeLength: number; | ||
public postPhonemeLength: number; | ||
|
||
constructor(preset: presetT) { | ||
this.id = preset.id; | ||
this.name = preset.name; | ||
this.speaker_uuid = preset.speaker_uuid; | ||
this.style_id = preset.style_id; | ||
this.speedScale = preset.speedScale; | ||
this.pitchScale = preset.pitchScale; | ||
this.intonationScale = preset.intonationScale; | ||
this.volumeScale = preset.volumeScale; | ||
this.prePhonemeLength = preset.prePhonemeLength; | ||
this.postPhonemeLength = preset.postPhonemeLength; | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export interface preset { | ||
id: number; | ||
name: string; | ||
speaker_uuid: string; | ||
style_id: number; | ||
speedScale: number; | ||
pitchScale: number; | ||
intonationScale: number; | ||
volumeScale: number; | ||
prePhonemeLength: number; | ||
postPhonemeLength: number; | ||
} |