
Recherche avancée
Autres articles (20)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP 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 (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (3800)
-
Revision bae652245d : Store block-wise statistics obtained in the first pass Change-Id : I9956db2ba2f7
25 juillet 2014, par Pengchong JinChanged Paths :
Modify /vp9/encoder/vp9_firstpass.c
Modify /vp9/encoder/vp9_firstpass.h
Store block-wise statistics obtained in the first passChange-Id : I9956db2ba2f7d28f484daaf5022d8d1ef5db473c
-
Revision 7385 : Eviter des soucis avec la date de naissance à nouveau et mettre le pass en ...
1er février 2013, par kent1 — LogEviter des soucis avec la date de naissance à nouveau et mettre le pass en sha256
-
How to return ffmepg processed output file and pass it to another function ? using python
5 septembre 2018, par Ali Khan AKI want to convert video to audio using ffmpeg and I also want to return that audio file and pass it on to another function which generates text from that audio. But when I pass ’audio’ to function error shows file not found..
def extract_audio(f):
print("processing", f)
inFile = f
outFile = f[:-3] + "wav"
cmd = "ffmpeg -i {} -vn -ac 2 -ar 44100 -ab 320k -f wav {}".format(inFile, outFile)
os.popen(cmd)
print(outFile)
print("Audio is ready to use..")
return outFile
def audio_to_text(audio):
r = sr.Recognizer()
r.energy_threshold = 4000
with sr.WavFile(open(audio)) as source: # use "test.wav" as the audio source
audio_source = r.record(source) # extract audio data from the file
text = r.recognize_google(audio_source)
try:
print(text) # recognize speech using Google Speech Recognition
except LookupError: # speech is unintelligible
print("Could not understand audio")
root = tk.Tk()
root.withdraw()
file_path = filedialog.askopenfilename()
filename = os.path.basename(file_path)
audio = extract_audio(filename)
audio_to_text(audio)