
Recherche avancée
Autres articles (61)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (7133)
-
Revision be7a285820 : Make the decoder Cfg available to encoder tests.. Adds decoder config as a chan
7 décembre 2014, par Jim BankoskiChanged Paths :
Modify /test/encode_test_driver.cc
Modify /test/encode_test_driver.h
Modify /test/vp9_end_to_end_test.cc
Make the decoder Cfg available to encoder tests..Adds decoder config as a changeable parameter to unit tests, and
changes end to end test to use commonly used parameters to enable
base test of tiles encoding and frame parallel decoding.Change-Id : I5d23a6857303b4d68b92b15c3f2f04a1bcb4c2bb
-
Getting error while transcribing mp3 file into text file
8 août 2021, par Parul VermaI used the below code to transcribe the mp3 file into text.


import speech_recognition as sr
from pydub import AudioSegment

# convert mp3 file to wav 
src=(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.mp3")
sound = AudioSegment.from_mp3(src)
sound.export(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.wav"), format="wav")

file_audio = sr.AudioFile(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.wav")

# use the audio file as the audio source 
r = sr.Recognizer()
with file_audio as source:
 audio_text = r.record(source)

print(type(audio_text))
print(r.recognize_google(audio_text))



But I got the following error-


FileNotFoundError Traceback (most recent call last)
 in <module>
 4 # convert mp3 file to wav
 5 src=(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.mp3")
----> 6 sound = AudioSegment.from_mp3(src)
 7 sound.export(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.wav", format="wav")
 8 

~\Anaconda3\lib\site-packages\pydub\audio_segment.py in from_mp3(cls, file, parameters)
 794 @classmethod
 795 def from_mp3(cls, file, parameters=None):
--> 796 return cls.from_file(file, 'mp3', parameters=parameters)
 797 
 798 @classmethod

~\Anaconda3\lib\site-packages\pydub\audio_segment.py in from_file(cls, file, format, codec, parameters, start_second, duration, **kwargs)
 726 info = None
 727 else:
--> 728 info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
 729 if info:
 730 audio_streams = [x for x in info['streams']

~\Anaconda3\lib\site-packages\pydub\utils.py in mediainfo_json(filepath, read_ahead_limit)
 272 
 273 command = [prober, '-of', 'json'] + command_args
--> 274 res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
 275 output, stderr = res.communicate(input=stdin_data)
 276 output = output.decode("utf-8", 'ignore')

~\Anaconda3\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
 852 encoding=encoding, errors=errors)
 853 
--> 854 self._execute_child(args, executable, preexec_fn, close_fds,
 855 pass_fds, cwd, env,
 856 startupinfo, creationflags, shell,

~\Anaconda3\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
1305 # Start the process
1306 try:
-> 1307 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1308 # no special security
1309 None, None,

FileNotFoundError: [WinError 2] The system cannot find the file specified
</module>


-
Cant find file or directory
25 juillet 2019, par Mister from BelarusSuprocess cant find file or directory from python script
I`ve tried to convert mp3 to wav with subprocess and it works with cmd, when i write ffmpeg -i file.mp3 file.wav, but indetical code on python cant find my files. ffmpeg version N-94387-g923d5c489f.
subprocess.call([’ffmpeg’, ’-i’, ’file.mp3’,
’file.wav’], cwd=r’C :/Users/Lenovo/Desktop’)Users/Lenovo/PycharmProjects/coloon/main.py
Traceback (most recent call last) :
File "C :/Users/Lenovo/PycharmProjects/coloon/main.py", line 4, in
’file.wav’], cwd=r’C :/Users/Lenovo/Desktop’)
File "C :\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 267, in call
with Popen(*popenargs, **kwargs) as p :
File "C :\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C :\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError : [WinError 2] Не удается найти указанный файлI`ve also tried to use this
subprocess.call(['ffmpeg', '-i', r'D:/file.mp3',
r'D:/file.wav'])but result is the same.