Skip to content

Commit

Permalink
code style readability update
Browse files Browse the repository at this point in the history
  • Loading branch information
patuwwy committed Jun 14, 2023
1 parent 103b61a commit e72ef95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions typescript/audio2text/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const app: ReadableApp<any> = async function(

return assembly.processFileFs().then(res => {
this.logger.info("Result", res);

return res;
});
};
Expand Down
3 changes: 3 additions & 0 deletions typescript/audio2text/src/utils/assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class Assembly {
if (result.status !== "completed") {
this.logger.info(result.status);
await defer(3000);

return this.transcript();
}

Expand All @@ -82,11 +83,13 @@ export class Assembly {
async processFileFs(): Promise<string> {
await this.uploadFromFs();
await this.startTranscript();

return this.transcript();
}
async processFile(inputStream: Readable): Promise<string> {
await this.upload(inputStream);
await this.startTranscript();

return this.transcript();
}
}
Expand Down

0 comments on commit e72ef95

Please sign in to comment.