Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (67)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (8609)

  • Anomalie #2024 (Nouveau) : langue des boutons d’admin

    7 avril 2011, par jluc -

    Sur spip.net, depuis plusieurs années, le texte des boutons d’admin m’apparaît en espagnol alors que tous mes paramétrages (espace perso, navigateur etc) sont en français. Je me souviens qu’un habitué d’IRC constatait également ce même (...)

  • Anomalie #3935 (Fermé) : SPIP 3 / php 7 : problème de connexion mysql (?)

    24 avril 2017, par tcharlss (*´_ゝ`)

    En SPIP 3, ubuntu + php7, SPIP ne semble pas parvenir à se connecter à mysql.
    En installant un SPIP neuf, lors du choix du type de base de donnée, il n’y a pas mysql.
    Avec un site déjà installé (qui fonctionne bien en php 5), message d’erreur : Attention : un problème technique (serveur SQL) empêche l’accès à cette partie du site.

    Avec SPIP 3.1, aucun souci.

    J’ai bien le paquet php-mysql d’installé, voilà la liste complète des paquets installés :

    libapache2-mod-php7.0 - langage de script inclus dans du HTML et exécuté côté serveur - module Apache 2
    php7.0 - langage de script côté serveur, inclus dans du HTML (méta-paquet)
    php7.0-cgi - Langage de script intégré à HTML et exécuté côté serveur (binaire CGI)
    php7.0-cli - command-line interpreter for the PHP scripting language
    php7.0-common - documentation, examples and common module for PHP
    php7.0-curl - CURL module for PHP
    php7.0-dev - Files for PHP7.0 module development
    php7.0-gd - GD module for PHP
    php7.0-gmp - GMP module for PHP
    php7.0-json - JSON module for PHP
    php7.0-ldap - LDAP module for PHP
    php7.0-mysql - MySQL module for PHP
    php7.0-odbc - ODBC module for PHP
    php7.0-opcache - Zend OpCache module for PHP
    php7.0-pgsql - PostgreSQL module for PHP
    php7.0-pspell - pspell module for PHP
    php7.0-readline - readline module for PHP
    php7.0-recode - recode module for PHP
    php7.0-snmp - SNMP module for PHP
    php7.0-sqlite3 - SQLite3 module for PHP
    php7.0-tidy - tidy module for PHP
    php7.0-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
    php7.0-xmlrpc - XMLRPC-EPI module for PHP
    php-all-dev - package depending on all supported PHP development packages
    libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library)
    php-geoip - GeoIP module for PHP
    php-xdebug - Xdebug Module for PHP
    php7.0-bcmath - Bcmath module for PHP
    php7.0-bz2 - bzip2 module for PHP
    php7.0-dba - DBA module for PHP
    php7.0-enchant - Enchant module for PHP
    php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
    php7.0-imap - IMAP module for PHP
    php7.0-interbase - Interbase module for PHP
    php7.0-intl - Internationalisation module for PHP
    php7.0-mbstring - MBSTRING module for PHP
    php7.0-mcrypt - libmcrypt module for PHP
    php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
    php7.0-soap - SOAP module for PHP
    php7.0-sybase - Sybase module for PHP
    php7.0-zip - Zip module for PHP
    php-amqp - AMQP extension for PHP
    php-apcu - APC User Cache for PHP
    php-gearman - PHP wrapper to libgearman
    php-gmagick - Provides a wrapper to the GraphicsMagick library
    php-gnupg - PHP wrapper around the gpgme library
    php-http - PECL HTTP module for PHP Extended HTTP Support
    php-igbinary - igbinary PHP serializer
    php-imagick - Provides a wrapper to the ImageMagick library
    php-libsodium - PHP wrapper for the Sodium cryptographic library
    php-mailparse - Email message manipulation for PHP
    php-memcache - memcache extension module for PHP
    php-memcached - memcached extension module for PHP, uses libmemcached
    php-mongodb - MongoDB driver for PHP
    php-msgpack - PHP extension for interfacing with MessagePack
    php-oauth - OAuth 1.0 consumer and provider extension
    php-pinba - Pinba module for PHP
    php-propro - propro module for PHP
    php-ps - ps module for PHP
    php-radius - radius client library for PHP
    php-raphf - raphf module for PHP
    php-redis - PHP extension for interfacing with Redis
    php-remctl - PECL module for Kerberos-authenticated command execution
    php-rrd - PHP bindings to rrd tool system
    php-smbclient - PHP wrapper for libsmbclient
    php-solr - PHP extension for communicating with Apache Solr server
    php-ssh2 - Bindings for the libssh2 library
    php-stomp - Streaming Text Oriented Messaging Protocol (STOMP) client module for PHP
    php-symfony-polyfill-php70 - Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
    php-tideways - Tideways PHP Profiler Extension
    php-uploadprogress - file upload progress tracking extension for PHP
    php-uuid - PHP UUID extension
    php-yac - YAC (Yet Another Cache) for PHP
    php-yaml - YAML-1.1 parser and emitter for PHP

  • Computer crashing when using python tools in same script

    5 février 2023, par SL1997

    I am attempting to use the speech recognition toolkit VOSK and the speech diarization package Resemblyzer to transcibe audio and then identify the speakers in the audio.

    


    Tools :

    


    https://github.com/alphacep/vosk-api
    
https://github.com/resemble-ai/Resemblyzer

    


    I can do both things individually but run into issues when trying to do them when running the one python script.

    


    I used the following guide when setting up the diarization system :

    


    https://medium.com/saarthi-ai/who-spoke-when-build-your-own-speaker-diarization-module-from-scratch-e7d725ee279

    


    Computer specs are as follows :

    


    Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz, 3912 Mhz, 2 Core(s), 4 Logical Processor(s)
    
32GB RAM

    


    The following is my code, I am not to sure if using threading is appropriate or if I even implemented it correctly, how can I best optimize this code as to achieve the results I am looking for and not crash.

    


    from vosk import Model, KaldiRecognizer
from pydub import AudioSegment
import json
import sys
import os
import subprocess
import datetime
from resemblyzer import preprocess_wav, VoiceEncoder
from pathlib import Path
from resemblyzer.hparams import sampling_rate
from spectralcluster import SpectralClusterer
import threading
import queue
import gc



def recognition(queue, audio, FRAME_RATE):

    model = Model("Vosk_Models/vosk-model-small-en-us-0.15")

    rec = KaldiRecognizer(model, FRAME_RATE)
    rec.SetWords(True)

    rec.AcceptWaveform(audio.raw_data)
    result = rec.Result()

    transcript = json.loads(result)#["text"]

    #return transcript
    queue.put(transcript)



def diarization(queue, audio):

    wav = preprocess_wav(audio)
    encoder = VoiceEncoder("cpu")
    _, cont_embeds, wav_splits = encoder.embed_utterance(wav, return_partials=True, rate=16)
    print(cont_embeds.shape)

    clusterer = SpectralClusterer(
        min_clusters=2,
        max_clusters=100,
        p_percentile=0.90,
        gaussian_blur_sigma=1)

    labels = clusterer.predict(cont_embeds)

    def create_labelling(labels, wav_splits):

        times = [((s.start + s.stop) / 2) / sampling_rate for s in wav_splits]
        labelling = []
        start_time = 0

        for i, time in enumerate(times):
            if i > 0 and labels[i] != labels[i - 1]:
                temp = [str(labels[i - 1]), start_time, time]
                labelling.append(tuple(temp))
                start_time = time
            if i == len(times) - 1:
                temp = [str(labels[i]), start_time, time]
                labelling.append(tuple(temp))

        return labelling

    #return
    labelling = create_labelling(labels, wav_splits)
    queue.put(labelling)



def identify_speaker(queue1, queue2):

    transcript = queue1.get()
    labelling = queue2.get()

    for speaker in labelling:

        speakerID = speaker[0]
        speakerStart = speaker[1]
        speakerEnd = speaker[2]

        result = transcript['result']
        words = [r['word'] for r in result if speakerStart < r['start'] < speakerEnd]
        #return
        print("Speaker",speakerID,":",' '.join(words), "\n")





def main():

    queue1 = queue.Queue()
    queue2 = queue.Queue()

    FRAME_RATE = 16000
    CHANNELS = 1

    podcast = AudioSegment.from_mp3("Podcast_Audio/Film-Release-Clip.mp3")
    podcast = podcast.set_channels(CHANNELS)
    podcast = podcast.set_frame_rate(FRAME_RATE)

    first_thread = threading.Thread(target=recognition, args=(queue1, podcast, FRAME_RATE))
    second_thread = threading.Thread(target=diarization, args=(queue2, podcast))
    third_thread = threading.Thread(target=identify_speaker, args=(queue1, queue2))

    first_thread.start()
    first_thread.join()
    gc.collect()

    second_thread.start()
    second_thread.join()
    gc.collect()

    third_thread.start()
    third_thread.join()
    gc.collect()

    # transcript = recognition(podcast,FRAME_RATE)
    #
    # labelling = diarization(podcast)
    #
    # print(identify_speaker(transcript, labelling))


if __name__ == '__main__':
    main()


    


    When I say crash I mean everything freezes, I have to hold down the power button on the desktop and turn it back on again. No blue/blank screen, just frozen in my IDE looking at my code. Any help in resolving this issue would be greatly appreciated.