Recherche avancée

Médias (91)

Autres articles (92)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (4306)

  • lavu/vulkan : add support for using libshaderc as a GLSL compiler

    19 novembre 2021, par Lynne
    lavu/vulkan : add support for using libshaderc as a GLSL compiler
    

    It's got a much better API that's actually maintained, it eliminates
    race conditions, it comes with a pkg-config file by default, and
    unfortunately isn't currently packaged by Debian or other large
    distributions.

    • [DH] configure
    • [DH] libavutil/vulkan.c
    • [DH] libavutil/vulkan_shaderc.c
  • avcodec/ffv1dec : Remove redundant writes, fix races

    21 avril 2021, par Andreas Rheinhardt
    avcodec/ffv1dec : Remove redundant writes, fix races
    

    Every modification of the data that is copied in update_thread_context()
    is a data race if it happens after ff_thread_finish_setup. ffv1dec's
    update_thread_context() simply uses memcpy for updating the new context,
    so that every modification of the src's context is a race.
    Some of these modifications are unnecessary : picture_number is write-only
    for the decoder and cur will be reset when decoding the next frame anyway.
    So remove them. And while just at it, also don't set cur for the slice
    contexts as this variable is write-only.

    Reviewed-by : Anton Khirnov <anton@khirnov.net>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/ffv1dec.c
  • Speech recognition with python-telegram-bot without downloading an audio file

    25 juin 2022, par linz

    I'm developing a telegram bot in which the user sends a voice message, the bot transcribes it and sends back what was said in text.&#xA;For that I am using the python-telegram-bot library and the speech_recognition library with the google engine.&#xA;My problem is, the voice messages sent by the users are .mp3, however in order to transcribe them i need to convert them to .wav. In order to do that I have to download the file sent to the bot.&#xA;Is there a way to avoid that ? I understand this is not an efficient and a safe way to do this since many active users at once will result in race conditions and takes a lot of space.

    &#xA;

    &#xA;def voice_handler(update, context):&#xA;    bot = context.bot&#xA;    file = bot.getFile(update.message.voice.file_id)&#xA;    file.download(&#x27;voice.mp3&#x27;)&#xA;    filename = "voice.wav"&#xA;    &#xA;    # convert mp3 to wav file&#xA;    subprocess.call([&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, &#x27;voice.mp3&#x27;,&#xA;                         &#x27;voice.wav&#x27;, &#x27;-y&#x27;])&#xA;&#xA;    # initialize the recognizer&#xA;    r = sr.Recognizer()&#xA;    &#xA;    # open the file&#xA;    with sr.AudioFile(filename) as source:&#xA;    &#xA;        # listen for the data (load audio to memory)&#xA;        audio_data = r.record(source)&#xA;        # recognize (convert from speech to text)&#xA;        text = r.recognize_google(audio_data, language=&#x27;ar-AR&#x27;)&#xA;        &#xA;        &#xA;def main() -> None:&#xA;    updater.dispatcher.add_handler(MessageHandler(Filters.voice, voice_handler)) &#xA;&#xA;

    &#xA;