Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
fixing typo in docs and exposing the TranscribeException class so it …
Browse files Browse the repository at this point in the history
…can be used to check the instance of error when using it
  • Loading branch information
qasim9872 committed Mar 30, 2020
1 parent b0a9ff1 commit b651e6c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nodemon.json
jest.config.js
.prettierrc
.gitignore
.eslintrcjs
.eslintrc.js
.eslintignore
.editorconfig
.npmignore
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const transcribeStream = client
// enums for returning the event names which the stream will emit
.on(StreamingClient.EVENTS.OPEN, () => console.log(`transcribe connection opened`))
.on(StreamingClient.EVENTS.ERROR, console.error)
.on(StreamingClient.EVENTS.CLOSE, () => console.log(`transcribe connection opened`))
.on(StreamingClient.EVENTS.CLOSE, () => console.log(`transcribe connection closed`))
.on(StreamingClient.EVENTS.DATA, (data) => {
const results = data.Transcript.Results

Expand Down
2 changes: 1 addition & 1 deletion src/examples/stream-from-microphone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const transcribeStream = client
// enums for returning the event names which the stream will emit
.on(StreamingClient.EVENTS.OPEN, () => console.log(`transcribe connection opened`))
.on(StreamingClient.EVENTS.ERROR, console.error)
.on(StreamingClient.EVENTS.CLOSE, () => console.log(`transcribe connection opened`))
.on(StreamingClient.EVENTS.CLOSE, () => console.log(`transcribe connection closed`))
.on(StreamingClient.EVENTS.DATA, (data) => {
const results = data.Transcript.Results

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { AwsTranscribe } from "./AwsTranscribe"
export { StreamingClient } from "./StreamingClient"
export { TranscribeException } from "./TranscribeException"
export * from "./types"

0 comments on commit b651e6c

Please sign in to comment.