Skip to content

Commit

Permalink
Merge pull request #34 from ryunix/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 committed Aug 18, 2023
2 parents a200c1d + 52d8698 commit 1e6a614
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ export class RestAPI {

async createAudioQuery(
text: string,
speaker_id: number,
speaker: number,
options: {
core_version?: string;
}
): Promise<audioQuery> {
let params: createAudioQueryOptions = {
text: text,
speaker_id: speaker_id,
speaker: speaker,
};
if (options.core_version) {
params["core_version"] = options.core_version;
Expand Down
2 changes: 1 addition & 1 deletion src/types/audioquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ interface mora {

export interface createAudioQueryOptions {
text: string;
speaker_id: number;
speaker: number;
core_version?: string;
}

0 comments on commit 1e6a614

Please sign in to comment.