GithubHelp home page GithubHelp logo

Local Audio Server about memento HOT 6 CLOSED

penguinbrew avatar penguinbrew commented on June 20, 2024
Local Audio Server

from memento.

Comments (6)

ripose-jp avatar ripose-jp commented on June 20, 2024

It should work. Just follow the instructions as normal, except use this URL instead of the one provided under OptionsAudio Sources. Make sure you choose JSON and not File for the type.

http://localhost:5050/?sources=jpod,jpod_alternate,nhk16&term={expression}&reading={reading}

from memento.

penguinbrew avatar penguinbrew commented on June 20, 2024

Thank you :)
It seems to work when creating cards anki, but i can't get the sound to play in memento when clicking the sound icon in the dictionary. Any idea why that could be?

from memento.

ripose-jp avatar ripose-jp commented on June 20, 2024

I need more information. Does the no audio icon get shown when you click it?

from memento.

penguinbrew avatar penguinbrew commented on June 20, 2024

I just click the sound icon, and then it goes gray for a moment, and then turns back to the original look, but i can't click it again.

from memento.

ripose-jp avatar ripose-jp commented on June 20, 2024

I've verified the behavior you were referring to and have determined it's because the plugin you're using doesn't send the content-length HTTP header with audio files. You'll have to ask the creator of the plugin to fix it.

All he has to do is add this line

self.send_header('Content-length', str(len(os.stat(audio_file).st_size)))

To the get_jpod_audio, get_jpod_alternative_audio, and get_nhk16_audio methods.

from memento.

ripose-jp avatar ripose-jp commented on June 20, 2024

I'm closing this since I've found the cause of the issue and there's been no activity in a week.

from memento.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.