Recherche avancée

Médias (91)

Autres articles (105)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (12153)

  • FFMPEG on Android with libmp3lame

    2 septembre 2014, par M4tho

    I’ build an app for android to convert videos to audio.
    Im using ffmpeg for the process. (Im using the precompiled version from here)

    At the moment its only possible to convert to *.wav and not to *.mp3.

    So im asking u if anybody can provide me a compiled version supporting the libmp3lame-library ?

    Or can anybody explane to me how to compile it myself.
    Ive tried to, but im getting some errors all the time and i dont know how to handle them.

    Ive tried to compile it myself with this setup :

    • Ubuntu x64
    • Android NDK-r10
    • ffmpeg SourceCode from Feb-02-2014
    • libmp3lame-dev

    following this tutorial
    of course ive added
    —enable-libmp3lame to the ./configuration

    thanks anyways
    and sorry for the bad english

  • I faced ffmpeg error in my project run time

    3 juillet 2023, par Jesy J
    Runtime error: can't load audio from file: 'ffmpeg' not found. Please install 
'ffmpeg' in your system to use non- wav audio file format and make sure 'ffprobe' 
is in your path


    


    I configure ffmpeg in my system but still I face this error.

    


    This is my code :

    


    !pip install gradio
!pip install SpeechRecognition
!pip install pydub
!pip install openai

import gradio as gr
import speech_recognition as sr
from pydub import AudioSegment
import openai

# Set up OpenAI API
openai.api_key = [MASKED]

# Function to convert text to speech using OpenAI's API
def text_to_speech(text, language):
    response = openai.Completion.create(
        engine="davinci",
        prompt=f"Translate the following English text into {language}: \"{text}\"",
        max_tokens=100,
        temperature=0.8,
        top_p=1.0,
        frequency_penalty=0.0,
        presence_penalty=0.0,
        stop=None,
        n=1,
        log_level="info"
    )
    return response.choices[0].text.strip()

# Function to recognize speech from audio
def speech_to_text(audio):
    recognizer = sr.Recognizer()
    with sr.AudioFile(audio) as source:
        audio_data = recognizer.record(source)
    return recognizer.recognize_google(audio_data)

# Function to convert audio to desired language
def convert_language(audio, target_language):
    recognized_text = speech_to_text(audio)
    translated_text = text_to_speech(recognized_text, target_language)
    return translated_text

# Function to process user input and generate output
def process_audio(input_audio, target_language):
    converted_text = convert_language(input_audio.name, target_language)
    return gr.outputs.Audio(converted_text, type="filepath")

# Set up Gradio interface
audio_input = gr.inputs.Audio(source="microphone")

language_input = gr.inputs.Dropdown(choices=["English", "French", "German"])  # Add more languages as needed

output_audio = gr.outputs.Audio(type="filepath", label="Output Audio")

title = "Multilingual AI Voice Assistant"

description = "Upload an audio file and select the target language for translation."

gr.Interface(fn=process_audio, inputs=[audio_input, language_input], outputs=output_audio, title=title, description=description).launch()


    


  • The audio selector of kaltura player is inactive

    17 février 2018, par Bolot Kalil

    Guys.

    I have created single video file with multiple audio using this ffmpeg code :

    ffmpeg -y -i input.mp4 -i 1.mp3 -i 2.mp3 -map 0:v -map 1:a -map 2:a -metadata:s:a:0 language=kir -metadata:s:a:0 title="Kirghiz" -metadata:s:a:1 language=eng -metadata:s:a:1 title="English" -acodec copy -bsf:a aac_adtstoasc -vcodec copy -movflags faststart output.mp4

    But on the kaltura after uploading the video file, audio selector on the player is inactive, why ?

    I have tried also with xml file, the result is same.

    Please help me I couldn’t find the reason why this happens.

    Many thanks.