
Recherche avancée
Autres articles (102)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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 (...) -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
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 (...)
Sur d’autres sites (11664)
-
How to transcode video in android in multiple formats [on hold]
25 novembre 2016, par adilyousufI am new to android development. I am working on Video Converter(Transcoder), I applied different api (MediaCodec,FFMPEG) But I didn’t understand what to do.
I didn’t get any special help from android official website and also i didn’t get complete help from google. I also used projects from github but they are very difficult(error) or out of understanding, If someone has work on project like this please tell me what should I learn and do -
I faced ffmpeg error in my project run time
3 juillet 2023, par Jesy JRuntime 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()



-
Java video manipulation library
21 octobre 2015, par Gabriele CiechI’m searching for a Java library that allows me to do some video manipulation like splitting a video in many parts and converting it into some other formats.
I’ve found out that there are already some libraries like Xuggler but they are no more under active development or mantained.
Can someone tell me which library I can use for accomplish my task or how can I build my own wrapper for ffmpeg ?
Thanks for helping me