-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add audio playback for feedback, hints, and solutions to learner view #4346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @tjiang11 -- I don't really have much to say (with regards to improvements)! Only main suggestion I have is to have one or more demo explorations with audio files for all the relevant components, for ease of testing in the future.
_explorationLanguageCode).id; | ||
oppia.factory('AudioTranslationManagerService', function() { | ||
// Audio translations in the main conversation flow, such as those for | ||
// content an feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: and
var _primaryHtmlForAutogeneratedAudio = null; | ||
|
||
// Audio translations outside of the main conversation flow, such as | ||
// those for hint and solutions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: hints
Hi @tjiang11, could you also please resolve the conflicts? |
@seanlip PTAL |
Just noticed some problems with the autogenerated audio, fixing now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tjiang11. LGTM. Just one question. After you get a couple of answers wrong and then press the "replay" button, shouldn't it read the content card too (not just the last feedback)?
Oh, I think I forgot about that.. Sorry I'll fix it so that it always starts from content and reads content + last feedback (is that right?) |
Actually let's just have it read the content when manually triggered. I think we decided that the last feedback was going to be read only as a one-off for now (when it appears). Otherwise it's hard to separate the content from the feedback aurally. |
(Also please note merge conflicts) |
@seanlip PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, I think. Thanks @tjiang11!
If you get to this in time, I suggest adding some comments to define "primary" and "secondary" audio translations in AudioTranslationManager.js. If you don't get to this in time, I'll merge it anyway.
Thanks!
WIP: This doesn't include hints and solutions yet. I'll finish this up after the hints refactor takes place, which I'll try to get around to reviewing later tonight. But this shouldn't take long once that gets in.
Note: I renamed AudioTranslationManagerService to AudioTranslationLanguageService and made a new AudioTranslationManagerService