22 2
Contact Author Sign in to rate

Advanced Answer Sounds

1.85MB. Updated 2022-05-29.
The author has shared 18 other item(s).

Description

This add-on modifies "Answer Button Sounds" add-on and adds more options, with a new sound effect adds when the card has the type field and people type answer with error cause the error sound playing and notifying people. 20220529 1:Change the effect sounds to their name's folder, when the add-on need play effect sound, it will random select one sound file to play. and the sound type is (wav|mp3|ogg|flac|m4a|oga). The "sound_new_agains":true param is removed, and the new agains sound file---"Lego Star Wars- The Complete Saga - All Death Sounds.wav" has been cutted to single sound file to the again folder. If you need more other sound effect, you can put the sound files to the named folders. 20220518 1:Add enable/disable sound delay menu on tools->Advanced Answer Sounds->sound delay on/off for no need to change config setting and restart Anki. And default sound delay is Disiabled. 20220517 1:Support click 'again' answer button to play ramdom sounds from the wave file, and it can switch with old again sound with config param: "sound_new_agains":true ----random use one segment of "Lego Star Wars- The Complete Saga - All Death Sounds.wav" 2:Support add by sleep times to delay the answer button's sound befor the next question card show, it can adjust by new config param: "sound_delay_time":0.8 -----if delay time bigger than zero, when you click the answer button, app will block the delay time to show now answern card then show next card's question. Because this addon develop by insert the answer sound file to the next card's question audio queue, if there is no delay time, it seems that current card's answer sound play at the next card's question show, but the app run the delay time will block the answer button's click, you can set the delay time by 0.0 to disable this delay. 20220509 1: Fix the bug for no card's sound play only answer sound. 20211230 1: Fix Bugs for no sound play with "Advanced MPV Player" add-on: mpv play need "pause=no" option. Update 20211229: 1: Support Suspend And User Bury And Sched Bury Sounds effect above Anki 2.1.35 version, because above ver2.1.35, anki change a lot of codes so maybe this update has some unknown problem. BTW: Above 2.1.35, anki adds another mpv player for play video, so this add-on remove this SimpleMpvPlayer and seems work well if you mind this change you can skip this update. Update 20211225: 1: Fix a bug for not right sound with easy type change. 2: Update Config params for control sounds' volume and length when use mpv to play answer sounds: "start":0.0, "end":0.0, "volume":100 In mpv: --volume=<value> Set the startup volume. 0 means silence, 100 means no volume reduction or amplification. Negative values can be passed for compatibility, but are treated as 0. --start --end can adjust the sound play length if use a long time audio file just want a clip time. 3: Support "Advanced MPV Player" when you also use this addon, and you need update "Advanced MPV Player" to the latest version Update 20211031: 1: Use another API to avoid error for using in higher version than 2.1.35 for bury and suspend sound. Update 20211030: 1: Support Suspend And User Bury And Sched Bury Sounds effect, "suspended": { "enable":1 }, "user buried": { "enable":1 }, "sched buried": { "enable":1 } the sound wave files in user_files Update 20210628: 1: Fix the bug when replay card's audio will play the effect sound. Update 20210602: 1: Add enable/disable sound menu on tools->Advanced Answer Sounds->again on/off and others on/off for no need to change config setting and restart Anki. Update: 1: Use a new way to enque the sound file to the native av_player's playlist to fix some bugs. 2: New config file only include enable/disable option because the sound play used the native av_player. The config file includes these options, you can enable every sound and adjust the playing time and volume. { "again": { "enable":1, "wait_time": 0.6, "volume": 100 }, "hard": { "enable":1, "wait_time": 0.6, "volume": 100 }, "good": { "enable":1, "wait_time": 0.5, "volume": 100 }, "easy": { "enable":1, "wait_time": 0.5, "volume": 100 }, "error": { "enable":1, "wait_time": 0.5, "volume": 100 } }

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1167194350

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1669319945
I'd like to add sounds for when I my deck is done. could you, please add this funcion? :)))

by the way, it's working with the linux version 2.1.54-2
on 1661761890
Still perfectly working on 2.49. Is it doable to make the "set due date" option sound?
on 1658050253
It doesn't work with Anki 2.1.54 on macOS 12.4.

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.4
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-07-16 19:14:19
Add-ons possibly involved: ⁨Advanced Answer Sounds⁩

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 42, in cmd
File "aqt.webview", line 149, in _onCmd
File "aqt.webview", line 624, in _onBridgeCmd
File "aqt.overview", line 92, in _linkHandler
File "aqt.main", line 673, in moveToState
File "aqt.main", line 694, in _reviewState
File "aqt.reviewer", line 150, in show
File "aqt.reviewer", line 170, in refresh_if_needed
File "aqt.reviewer", line 233, in nextCard
File "aqt.reviewer", line 368, in _showQuestion
File "aqt.hooks_gen", line 3401, in __call__
File "/Users/eugen/Library/Application Support/Anki2/addons21/1167194350/__init__.py", line 240, in reviewer_did_show_question
if sounds[i].filename.find(user_files) != -1:
AttributeError: 'TTSTag' object has no attribute 'filename'
on 1656301702
It doesn't seem to work on the Mac apple silicon version 2.1.50 and upwards. Does the Answer Button Sounds also have to be installed and enabled?
on 1654496291
A great idea. I was looking for such an add-on all the time. Is it possible to make it play sounds before the "Sound On Tag"? Whenever I press an answer key, I hear the sounds on the tag before the sounds on the answers.
Comment from author before post was edited
I can't reproduce the problem, can you tell me you anki's version and system and other helpful information? or maybe it conflict with other addons and you can try with a full new install anki and only this add on to reproduce the problem.
on 1654442342
o m g, Amoosing add-on!
bless the author (owo)
on 1653751468
Thank you, perfectly working on 2.49, even the customization of the sound by changing the wav files in the folder.
on 1653458334
I would like to replace the "again" sound effect with my own. However, when I try to do that and restart Anki, the again sound effect does not work. The rest work though. Is it because of the special programming for the "again" button? What do I do? I'm not tech savvy. Thank you.
Comment from author
20220529: I update a new version, and change effect files to name's folder, you can try put you own 'again' sound effect to the again folder and remove the other again files to try it.
on 1652900235
5-18-2022: Dev, do you have secure donation link (patreon/Paypal/etc)?
----------------------------------------------------------------------
EDIT (05/17/2022): Update (20220517) causing issues going through cards quickly ... make sure to disable the newly implemented 0.8 sec delay (via file configuration) as it intentionally causes a slight lag between cards.

!!!!Would like to make suggestion to dev this be an opt-in feature instead of default as users may not be familiar with configuring add-ons.
----------------------------------------------------------------------
EDIT: Updated to Anki Ver. 2.1.49 and addon once again works flawlessly ... did not realize how essential the answer sounds have become to my studying until it did not function
----------------------------------------------------------------------
Not compatible with Ver. 2.1.46 as of 12/25/2021 update despite working well with this version of Anki prior to the update.

The add-on will crash without dev's other addon "Advanced MPV Player" and will only ring for the first card with this additional addon installed.

Dev, please upload prior versions to GitHub ...
Comment from author before post was edited
20220518: I update a new version to change the sound delay default to disable, and you can try it.

Sorry for bad experience, I found a bug for the no sound, above Ver.2.1.35 mpv play file need add "pause=no" option. I have added this option and you can try them.
on 1652833024
Oh my gosh dude thanks so much for making this modification! It sounds awesome!

Old comment: Thank you for your response! Are you familiar with the Puppy Reinforcement Addon? Each time it's triggered, it selects a random image from a folder full of puppy images. I was wondering if your addon could work the same way with the sounds it plays for each button. Each time you hit the "again" button it selects a random sound file from a folder of "again" sounds and plays it. These were the sounds I was thinking of: https://www.youtube.com/watch?v=8PouYrTn7os
Comment from author before post was edited
I updated the addon and try to random play the sound of the again button, you can test the new version.

I don't full understand your means, but I guess you can use another addon of me: <Movie Import with Subtitles to Learning> https://ankiweb.net/shared/info/1840722307, this addon make cards for video clip with its subtile file, so you can sequence or randomly play these cards with sound and sentence.
on 1652269099
Thank you for the update it work flawlessly now on 2.1.50
Comment from author before post was edited
I fixed this bug and you can try the new version for the new codes upddate by new anki version
on 1652135994
works, but unfortunately it broke the sound for all my cards. so i couldn't hear any other audio except for the Answer Sounds
edit: its all fixed now and works like expected. great addition to my anki reviews.
Comment from author before post was edited
I fixed this bug and you can try the new version
on 1640607943
Thank you for your prompt reply and wish you a happy new year. No, it did not work, while your message remind me that I could re-install the add-on. And voilà, the error messages disappear.
Comment from author before post was edited
I try use anotehr API for the code to avoid the error in higher than 2.1.35, you can try the new version

I try with the 2.1.49 and not find this problem, I think maybe the anki addon use the old config sets, you can check the C:\Users\Tommy\AppData\Roaming\Anki2\addons21\1167194350 this dir's meta.json and config.json files,check if the meta.json have the same param with config.json. Or you can goto tools--add-ons-config-restore default for the "Advanced Answer Sounds" add-on
on 1640256659
Thank you so much, it works
on 1639572865
Thank you for your plugin. There is a problem. I changed the sound volume and wait_time, but it didn't take effect. Like this
"easy": {
"enable":1,
"wait_time": 1.5,
"volume": 10
},
Comment from author
Sorry for the outdated config params,these params were the first version,after first update:
Update:
1: Use a new way to enque the sound file to the native av_player's playlist to fix some bugs.
2: New config file only include enable/disable option because the sound play used the native av_player.
old versiion use "Advanced MPV Player"--another addon for mpv can use options-- to config duration and volume.
the new version use native av_player to play sounds and can't use options.
if want to change times and volume of the sound , one option is modify the files in the addon's user_files, or wait some times for to develop a new version try to patch the native av_player support options for duration and volume these configs
on 1634949862
Excelente!!! lo unico que tengo problema para cambiar a mis propios sonidos,valguien puede ayudarme por favor!
on 1632124901
It works on 2.1.47. Feature Request: Bury and Suspend Sounds
Comment from author
I have tried to support susppend and user bury and sched bury, it seems work and you can try the new version, if it has some questions, you can feed back, I only test on 2.1.35.
on 1632049186
How do I change it to my own sounds?
Comment from author
in the addon's install dir, there has a user_files directory, you can replace your own sound files for same name wav or mp3 or other mpv can played audio files. From menu choose: Tools->Add-ons->select "Advanced Answer Sounds"->View Files and will open the install dir.
on 1627633990
Amazing. Works perfectly with 2.1.44. Thank you!
on 1624692721
It works on Anki 2.1.44(macOS), but there is one problem: the good.wav sound also plays whenever I press Replay Card's Audio, which makes the addon barely useable :(
Comment from author
I tried fixing this bug and updated a new version, you can try it.
on 1622464367
Thanks man!
Comment from author before post was edited
Update a new version and welcome to try it.
on 1622258437
Great~!
on 1620220942
keeps interrupting the audio abruptly but it's good.
Comment from author
Update a new version and welcome to try it.
on 1619463747
Good idea, thanks.