Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (62)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (9466)

  • Google Speech Recognition API output errors, unsure why they're occuring

    8 novembre 2019, par Requiem_7

    This is the output for when I feed flac files into Google’s Speech Recognition API. It says that if starts and finishes most of the files but then it gives me these errors when it nears the end. I have checked and all these files are native flac files. I took out a good chunk of the output above "source/out70.flac started" becuase it’s all the same besides the file number.

    source/out70.flac started
    source/out25.flac started
    source/out17.flac done
    source/out18.flac started
    source/out25.flac done
    source/out20.flac done
    source/out21.flac started
    source/out10.flac done
    source/out100.flac started
    source/out14.flac done
    source/out18.flac done
    source/out21.flac done
    Traceback (most recent call last):
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 203, in __enter__
       self.audio_reader = wave.open(self.filename_or_fileobject, "rb")
     File "C:\Program Files (x86)\Python37-32\lib\wave.py", line 510, in open
       return Wave_read(f)
     File "C:\Program Files (x86)\Python37-32\lib\wave.py", line 164, in __init__
       self.initfp(f)
     File "C:\Program Files (x86)\Python37-32\lib\wave.py", line 129, in initfp
       self._file = Chunk(file, bigendian = 0)
     File "C:\Program Files (x86)\Python37-32\lib\chunk.py", line 63, in __init__
       raise EOFError
    EOFError

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 208, in __enter__
       self.audio_reader = aifc.open(self.filename_or_fileobject, "rb")
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 917, in open
       return Aifc_read(f)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 352, in __init__
       self.initfp(file_object)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 314, in initfp
       chunk = Chunk(file)
     File "C:\Program Files (x86)\Python37-32\lib\chunk.py", line 63, in __init__
       raise EOFError
    EOFError

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 234, in __enter__
       self.audio_reader = aifc.open(aiff_file, "rb")
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 917, in open
       return Aifc_read(f)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 358, in __init__
       self.initfp(f)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 314, in initfp
       chunk = Chunk(file)
     File "C:\Program Files (x86)\Python37-32\lib\chunk.py", line 63, in __init__
       raise EOFError
    EOFError

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\hmkur\Desktop\Python\Transcribing_Audio_GoogleAPI_Python\fast.py", line 92, in <module>
       all_text = pool.map(transcribe, enumerate(files))
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 268, in map
       return self._map_async(func, iterable, mapstar, chunksize).get()
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 657, in get
       raise self._value
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 121, in worker
       result = (True, func(*args, **kwds))
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 44, in mapstar
       return list(map(*args))
     File "C:\Users\hmkur\Desktop\Python\Transcribing_Audio_GoogleAPI_Python\fast.py", line 82, in transcribe
       with sr.AudioFile(name) as source:
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 236, in __enter__
       raise ValueError("Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format")
    ValueError: Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format
    </module>
  • App crashes on Google TV when playing MP4 videos

    14 avril 2023, par fab

    I am having problems with an Android app that was developed for me. The issue occurs when playing MP4 videos ; the app plays them correctly, but at some point, the app crashes and exits. I have been reviewing errors using Android Studio, and the only error that appears is the following :

    &#xA;

    2023-04-14 00:45:45.846 7221-7650 SurfaceUtils com.app.X D connecting to surface 0xbf0d2808, reason connectToSurface(reconnect) 2023-04-14 00:45:45.848 7221-7654 ACodec com.app.X E [OMX.amlogic.avc.decoder.awesome2] setPortMode on output to DynamicANWBuffer failed w/ err -2147483648 2023-04-14 00:45:45.855 7221-7334 com.app.X com.app.X I get_buffer_dataspace_setting get_metadata return 0 dataspace:268500992 2023-04-14 00:45:45.875 7221-7334 NdkImageReader com.app.X D acquireImageLocked: Overriding buffer format YUV_420_888 to 0x11. 2023-04-14 00:45:45.877 7221-7334 com.app.X com.app.X I get_buffer_dataspace_setting get_metadata return 0 dataspace:268500992 2023-04-14 00:45:45.887 7221-7280 MediaCodec com.app.X D keep callback message for reclaim 2023-04-14 00:45:45.896 7221-7334 com.app.X com.app.X I get_buffer_dataspace_setting get_metadata return 0 dataspace:268500992 2023-04-14 00:45:45.914 7221-7334 com.app.X com.app.X I get_buffer_dataspace_setting get_metadata return 0 dataspace:268500992 2023-04-14 00:45:45.915 7221-7654 SurfaceUtils com.app.X D disconnecting from surface 0xbf0d2808, reason setNativeWindowSizeFormatAndUsage 2023-04-14 00:45:45.915 7221-7654 SurfaceUtils com.app.X D connecting to surface 0xbf0d2808, reason setNativeWindowSizeFormatAndUsage 2023-04-14 00:45:45.915 7221-7654 SurfaceUtils com.app.X D set up nativeWindow 0xbf0d2808 for 1920x1080, color 0x11, rotation 0, usage 0x402b00 2023-04-14 00:45:45.915 7221-7654 ACodec com.app.X W [OMX.amlogic.avc.decoder.awesome2] setting nBufferCountActual to 9 failed: -1010 2023-04-14 00:45:45.922 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument 2023-04-14 00:45:45.928 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument 2023-04-14 00:45:45.943 7221-7334 com.app.X com.app.X I get_buffer_dataspace_setting get_metadata return 0 dataspace:268500992 2023-04-14 00:45:45.954 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument 2023-04-14 00:45:45.960 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument 2023-04-14 00:45:45.962 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument 2023-04-14 00:45:45.969 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument 2023-04-14 00:45:45.979 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument 2023-04-14 00:45:45.986 7221-7654 ion com.app.X E ioctl c0084905 failed with code -1: Invalid argument

    &#xA;

    One clarification is that the app is built with IONIC and Angular.

    &#xA;

    The FFMPEG code that converts the video in golang is as follows :

    &#xA;

    func ConvertVideoFile(inputFileName, outputFileName string) error { err := ffmpeg_go.Input(inputFileName). Filter("scale", ffmpeg_go.Args{"800:600"}). Output(outputFileName, ffmpeg_go.KwArgs{ "c:v": "libx264", "profile:v": "high", "level": "3.1", "pix_fmt": "yuv420p", "preset": "medium", "crf": "23", "b:v": "782k", "r": "25", "c:a": "aac", "b:a": "2k", "ar": "48000", "movflags": "&#x2B;faststart", "max_muxing_queue_size": "1024", }, ). OverWriteOutput().ErrorToStdOut().Run() return err }

    &#xA;

    Remove this error 2023-04-14 00:45:45.848 7221-7654 ACodec com.app.X E [OMX.amlogic.avc.decoder.awesome2

    &#xA;

  • Google cloud speech to text not giving output for OGG & MP3 files

    27 avril 2021, par Vedant Jumle

    I am trying to perform speech to text on a bunch of audio files which are over 10 mins long. I don't want to waste storage on the cloud bucket by straight-up uploading wav files on it. So I am using ffmpeg to convert the files either to ogg or mp3 like :&#xA;ffmpeg -y -i audio.wav -ar 12000 -r 16000 audio.mp3

    &#xA;

    ffmpeg -y -i audio.wav -ar 12000 -r 16000 audio.ogg

    &#xA;

    For testing purpose I ran the speech to text service on a dummy wav file and it seemed to work, I got the text as expected. But for some reason it isn't detecting any speech when I use the ogg or mp3 file. I could not give amr files to work either.

    &#xA;

    My code :

    &#xA;

    def transcribe_gcs(gcs_uri):&#xA;    client = speech.SpeechClient()&#xA;&#xA;    audio = speech.RecognitionAudio(uri=gcs_uri)&#xA;    config = speech.RecognitionConfig(&#xA;        encoding="OGG_OPUS", #replace with "LINEAR16" for wav, "OGG_OPUS" for ogg, "AMR" for amr&#xA;        sample_rate_hertz=16000,&#xA;        language_code="en-US",&#xA;    )&#xA;    print("starting operation")&#xA;    operation = client.long_running_recognize(config=config, audio=audio)&#xA;    response = operation.result()&#xA;    print(response)&#xA;

    &#xA;

    I have set up the authentication properly, so that is not a problem.

    &#xA;

    When I run the speech to text service on the same audio but in ogg or mp3(I just comment out the encoding setting from the config for mp3) format, it gives no response, just prints out a line break and done.

    &#xA;

    What can I do to fix this ?

    &#xA;