Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (76)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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 (11272)

  • Audio output from MemoryStream using TTS to Discord Bot

    26 mars 2019, par Casval Zem Daikun

    I’m writing a Discord Bot in VS2017 using Discord.Net wrapper. I’ve gotten everything to work (parsing/sending text commands, joining voice channels) except the main goal : Using TTS audio output stream in a voice channel.

    Basically, I’m using SpeechSynthesizer to create the MemoryStream and write that to the Discord bot. The problem is, there’s no audio. At all. I’ve been following several other answers as well as the documentation on the Discord.Net site and can’t seem to find a way to get this to work. Audio streaming via url/file is well documented but not this.

    var ffmpeg = CreateProcess("");
               var output = ffmpeg.StandardOutput.BaseStream;
               IAudioClient client;
               ConnectedChannels.TryGetValue(guild.Id, out client);
               var discord = client.CreatePCMStream(AudioApplication.Mixed);


               await output.CopyToAsync(discord);
               await discord.FlushAsync();

    Above is the sample I’ve been using which is sourced from a file via ffmpeg. I see that it’s just copying over a stream, so I’ve attempted the following in various methods :

    IAudioClient client;
               ConnectedChannels.TryGetValue(guild.Id, out client);
               var discord = client.CreatePCMStream(AudioApplication.Mixed);

               var synth = new SpeechSynthesizer();
               var stream = new MemoryStream();
               var synthFormat = new SpeechAudioFormatInfo(
                   EncodingFormat.Pcm,
                   8000,
                   16,
                   1,
                   16000,
                   2,
                   null);

               synth.SetOutputToAudioStream(stream, synthFormat);
               synth.Speak("this is a test");

               await stream.CopyToAsync(discord);
               await discord.FlushAsync();

    I’ve tried changing around the SpeechAudioFormatInfo properties, changing the output on the SpeechSynthesizer, completely removing the async calls, pretty much everything that I could think of with no result.

    I realize that I could just output sound to a dummy audio device and have another account/bot pick up on that but that was not the goal of this exercise.
    I also realize that I could just write the output to a file and just stream it but that would increase the processing time. These TTS instructions are small, never over 5 words, and need to be somewhat quick to the point since they’re supposed to be "callouts".

    Lastly, I couldn’t exactly find a way to make this work with ffmpeg either. Everything I’ve read seems to indicate the need for a physical source, not just a memory stream.

    So, I’m at wit’s end. Any assistance would be appreciated.

  • Bulk converting wav files to 16-bit with ffmpeg in batch from unix command

    10 décembre 2018, par dorien

    I have a folder consisting of many subfolders, each with other subfolders and therein wav files.

    I want to convert all of the files like this :

    ffmpeg -i BmBmGG-BmBmBmBm.wav -acodec pcm_s16le -ar 44100 BmBmGG-BmBmBmBm.wav

    BUT, I want the directory structures and names preserved. Either overwritten or in a parallel directory.

    The above command words fine when the output file has a different name, however, with the same name I get an error :

    Multiple frames in a packet from stream 0
    [pcm_s24le @ 0x1538ac0] Invalid PCM packet, data has size 4 but at least a size of 6 was expected
    Error while decoding stream #0:0: Invalid data found when processing input

    I first tried bulk converting like this :

    ffmpeg -i */*/*.wav -acodec pcm_s16le -ar 44100 */*/*.wav

    Unfortunately, this gives the same problem. How can I store them in a parallel directory ? Say new///*.wav ?

  • Do ffmpeg-python and ffmpy are system version independent ?

    10 décembre 2018, par SGarcia

    I am making a python-based software that actually uses my Window’s ffmpeg version. But I am thinking about to make it crossplatform, so, I heard that youtube-dl uses ffmpeg, so I want to know what is the module that it uses. But also, searching I found these two ffmpeg python modules.

    In other words, three questions :

    1. Does ffmpeg-python is system version independent ?
    2. Does ffmpy is system version independent ?
    3. What ffmpeg module does youtube-dl uses ?