Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the Feedback API #388

Open
joggienl opened this issue Feb 28, 2020 · 0 comments
Open

Expand the Feedback API #388

joggienl opened this issue Feb 28, 2020 · 0 comments

Comments

@joggienl
Copy link
Contributor

Make it possible to not rely on the recorder to send some audio to the feedback API but rather allow some arbitrary blob and make sure that it is send to the backend.

If so, dismiss sesnding progressed results (=intermediate feedback result). Collect them and return it combined with the so called final result.

An example:

// Call feedback
const result = await feedback.perform(challengeId, audioBlob);

console.log(result);

// Output example:
//{
//  intermediate: [
//    { sentence: 0, words: [ ... ] }
//    { sentence: 1, words: [ ... ] }
//    { sentence: 1, words: [ ... ] }
//    { sentence: 2, words: [ ... ] }
//  ],
//  final: {
//    audioUrl: 'http://download-the-file',
//    sentences: [
//      { sentence: 0, words: [ ... ] }
//      { sentence: 1, words: [ ... ] }
//      { sentence: 1, words: [ ... ] }
//      { sentence: 2, words: [ ... ] }
//    ]
//  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant