blmage / duolingo-tts-controls Goto Github PK
View Code? Open in Web Editor NEWA small browser extension providing playback controls for some of the challenges on Duolingo.
License: MIT License
A small browser extension providing playback controls for some of the challenges on Duolingo.
License: MIT License
Old challenge forms may still be present on the page at the time we search for a new wrapper of playback buttons.
If the new listening challenge uses a "cartoon" form, and the previous challenge was a listening challenge using a "normal" form, the old wrapper is detected instead of the new one.
This can be fixed by restricting the search.
Most certainly due to the last rounded position being too big.
Most certainly due to the fact that stop
is called on the sounds before playing them, no matter what their current state is.
it does not work with new english from russian tree
but it works with the old one
Sometimes I reach a word in the phrase and when I want to come back to write my answer I accidentally trigger the full control panel, which is a bit annoying.
My idea is that maybe the controls could be placed anywhere else, like above the phrase and buttons.
Those buttons could apply 0.5 ms steps (/ more or less depending on the duration of the current sound?).
See this comment.
Could be part of the duo-toolbox library.
See for example this comment.
slow payback settings are not saved
We may want to use the same shortcuts as Youtube.
This may be due to the cleanup of obsolete controls forms happening too late.
The current width being the default / smallest available.
it does not work with Yandex - a chromium browser on Mac OS 10.14.6
Link: https://github.com/callstack/linaria.
The idea would be to define each class name only once, and reference them in the CSS-in-JS stylesheets via constants.
Hi, sorry for my ignorance, but I'm trying to create a script for duolingo to automatically play stories, but for this to work I should somehow have access to audio that by default is not shown in HTML. I saw that you managed to solve this problem but when I tried to read your code I didn't understand how you did it (I'm still a beginner), could you not explain more directly to me what I should research to be able to solve this problem. Sorry if this isn't the best place to ask questions, but it's the only one I found
Hi
Any chance you can override / reset new boy / girl voices ? those in english & spanish cources ( and may be others)
Brightcove Player Version | 6.64.2
Windows 10 Pro (4-bit)
Before adding the Firefox add-on, this media player was working fine.
Added duolingo-tts-controls to FF (latest version of each). No other changes during this time.
Brightcove no longer displaying video, but I could still hear audio. Cannot use a different media player, because the content I need is embedded --using Brightcove-- in an educational website that I need to use.
Disabled this add-on ONLY (left all other FF add-ons enabled).
Brightcove is working fine again, now (with duolingo-tts-controls add-on enabled, no other changes on my PC).
Not a programmer or coder, so I have no idea why this media player and this add-on don't play well together.
Good luck!
Have bigger sliders, bigger buttons, and maybe adapt a little bit Duolingo's UI to use the whole screen?
There seem to be at least two different cases for this one:
In both cases, everything goes back to normal after the first playing of the sound, but this is certainly due to the default startPosition
being applied after the end
event.
Find new keyboard shortcuts to replace the conflicting ones.
Now that the playback buttons are placed inside labels, the space around the toggle buttons triggers playing the sound.
Also (but quite less easy to fix), :active
and :hover
effects for the playback buttons are handled via the label state, meaning that hovering / pressing a toggle button also makes the corresponding playback button appear hovered / pressed.
In the course Spanish for German speaker there is one type of questions where the controls are missing:
According to your explanation in this issue, I extracted the challenge type to be challenge challenge-translate
.
Thanks for the addon, finally a way to change the volume for duo!
It seems like there are some more quirks coming from the "howler.js" library.
The seek
method, for example, also returns wrong results when the sound currently being played is a "clone", and not the original (first) sound: https://github.com/goldfire/howler.js/blob/9117525f0883ddb995f99ee843bba7f6d3442590/src/howler.core.js#L1584.
In fact, all kind of problems start to happen once the library resorted to clone sounds (via _inactiveSound()
: https://github.com/goldfire/howler.js/blob/9117525f0883ddb995f99ee843bba7f6d3442590/src/howler.core.js#L2037, because the _playLock
flag is set, or because no sound is paused: https://github.com/goldfire/howler.js/blob/9117525f0883ddb995f99ee843bba7f6d3442590/src/howler.core.js#L750). This seems to happen mostly with "non-standard" use, when the network is slow, and much more consistently on Firefox.
Could this be the (one of) the reason(s) why the original playback buttons stop the sounds at first?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.