Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (108)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (17649)

  • check supported() before play/createSound() calls

    5 octobre 2010, par Scott Schiller

    m demo/template/deferred-example.html check supported() before play/createSound() calls

  • Play sound using bytes array in python

    30 juin 2015, par iRavi iVooda

    How can I play sound using a byte array in python. To be more precise, I read a byte array from a socket and I want to convert it to sound to understand it. How can I achieve this.

    Any libraries would be useful.

  • Discord.py, ffmpeg and pytube to play audio, but it keeps stopping early. Why ? [closed]

    15 septembre 2023, par LowEloTV

    I tried to program a discord,py bot to play audio, but the audio kept cutting out in the middle.

    


    @bot.command()
async def play(ctx, url: str):
    global ffmpeg_executable
    if discord.utils.get(ctx.guild.roles, name='music'):
        role = discord.utils.get(ctx.guild.roles, name='music')
        if role in ctx.author.roles:
            voice_client = ctx.voice_client


            if voice_client is None:
                channel = ctx.author.voice.channel
                voice_client = await channel.connect()
                print("Bot joined voice channel successfully.")


            try:
                # Fetch the audio stream URL using pytube
                yt = YouTube(url)
                audio_stream = yt.streams.filter(only_audio=True).first()


                # Play the audio stream using the VoiceProtocol
                if voice_client.is_playing():
                    voice_client.stop()
                voice_client.play(discord.FFmpegPCMAudio(audio_stream.url, executable=ffmpeg_executable))
            except Exception as e:
                await ctx.reply(f"An error occurred: {str(e)}")
        else:
            await ctx.reply('You don\'t have the permission for this command!')
    else:
        await ctx.reply('This Feature is not available on this guild, ask an Admin to add it!')




    


    I tried to program a discord,py bot to play audio, but the audio kept cutting out in the middle.