Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (97)

  • 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.

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (11256)

  • Why does OpenAI Whisper return "None" ?

    29 septembre 2024, par SHDDSFFDSDSAF

    I'm trying to transcribe an MP3 file using OpenAI’s Whisper model, but the transcriptions.create() method consistently returns None. I’ve tried different MP3 files, converted them to WAV, updated the OpenAI library, and added error handling, but I still can’t figure out the issue.

    


    Here’s my code :

    


    from openai import OpenAI

client = OpenAI(
    api_key="MYAPIKEY"
)

audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
    file=audio_file,
    model="whisper-1",
    response_format="verbose_json",
    timestamp_granularities=["segment"]
)

print(transcript)


    


    I’ve confirmed that :

    


      

    • The API key is valid.
    • 


    • I’m using OpenAI Python library version X.X.X.
    • 


    • I’ve tested both MP3 and WAV formats.
    • 


    • The MP3 file is valid (checked using ffmpeg).
    • 


    


    The response always returns None without any exceptions. Any ideas on what could be going wrong ?

    


  • What does it mean for avcodec_find_decoder() to return 0 ? [duplicate]

    11 février 2019, par Lucas Zanella

    This question already has an answer here :

    This part of my code

    m_pAVCodec = avcodec_find_decoder(AV_CODEC_ID_H264);

    is returning 0, which means it failed to find the codec.

    What does it mean for ffmpeg to not find a codec ? Is it something related with my system ? I need somehow to install the h264 codec ?

    I’m using Ubuntu

    UPDATE :

    By doing
    avcodec_register_all() ;

    before, it works. It’s kinda strange because av_register_all() was deprecated long ago and won’t even compile.

    What more needs to be registered ?

  • PHP exec or shell_exec not returning process id (PID) on Windows Wamp

    17 mai 2013, par HoplaYann

    I am on windows 7, using a WampServer, and trying to use FFMPEG.

    The encoding works, but I can't get a process id back from either the exec()
    method nor the shell_exec() methods.

    This is my code :

    $cmd = C:\ffmpeg\bin\ffmpeg.exe -i "C:\...\4ch.wav"  -ar 44100 -ab 48000 -f mp3 -y "C:\...\enc_4ch.mp3"

    This what I was trying to do with shell_exec :

    shell_exec("nohup $cmd > /dev/null & echo $!");

    And with exec :

    exec("nohup " . $this->_command . " > /dev/null 2>/dev/null &") ; // returns null
    exec("nohup " . $this->_command . " > /dev/null 2>&1 &"); // also returns null

    Please let me know what I do wrong, as I'd like later to use the following method to check if my process is still running :

    private function is_process_running($proccess_id)
       {
           exec("ps $proccess_id", $process_state);
           return (count($process_state) >= 2);
       }

    thank you in advace