Speaker Recognition and Diarization open resources

Speaker Recognition

ALIZE/LIA_RAL – C++

https://github.com/ALIZE-Speaker-Recognition/LIA_RAL

SIDEKIT  – python
MSR Identity Toolbox – matlab
Kaldi – scripting
Examples
===========================================================================

Discussion

http://habla.dc.uba.ar/gravano/ith-2014/presentaciones/Dehak_et_al_2010.pdf

 

GMM-UBM i-Vector

http://cslt.riit.tsinghua.edu.cn/mediawiki/images/c/cb/131104-ivector-microsoft-wj.pdf

https://people.csail.mit.edu/sshum/talks/ivector_tutorial_interspeech_27Aug2011.pdf

https://speechlab.sjtu.edu.cn/pages/sw121/homepage/2016/05/20/ivector-tutorial/

https://blog.csdn.net/xmu_jupiter/article/details/47209961

https://blog.csdn.net/zhangxueyang1/article/details/66971997

 

Speaker Diarization

LIUM – JAVA

http://www-lium.univ-lemans.fr/diarization/doku.php/welcome

https://github.com/StevenLOL/LIUM

kaldi CALLHOME_diarization – scripting

https://github.com/kaldi-asr/kaldi/tree/master/egs/callhome_diarization

https://github.com/Jamiroquai88/VBDiarization

Pyannote – python

https://github.com/pyannote/pyannote-audio

aalto speech – python for segment

https://github.com/aalto-speech/speaker-diarization

 

 

 

Advertisements

How to use css class in the innerHtml binding in angular

Credit goes to this link:

http://stackoverflow.com/questions/36265026/angular-2-innerhtml-styling

“Angular adds all kinds of CSS classes to the HTML it adds to the DOM to emulate shadow DOM CSS encapsulation to prevent styles of bleeding in and out of components. Angular also rewrites the CSS you add to match these added classes. For HTML added using [innerHTML] these classes are not added and the rewritten CSS doesn’t match.”

As a workaround try

  • for CSS added to the component
:host /deep/ mySelector {
  background-color: blue;
}
  • for CSS added to index.html
body /deep/ mySelector {
  background-color: green;
}

How to pass data via event from child to parent component in Angular 2

At the child, I have a boolean data want to send to parent if a function method is clicked. What should I do?

Parent code is here. (onChangeDone) to receive an output from the child component and it can trigger a method to receive the event from the child too:

HTML Tag:
...

<childcomp (onChangeDone)="onChangeD($event)"> </childcomp>

....

TS code part:

export class ParentComp {

 onChangeD( result: boolean ) {
        if ( result ) // data changed
          { }
        else { }
    }


...

At the child component, answer is @Output() and together with the EventEmitter:

export class ChildComp implements OnInit {

    @Output() onChangeDone = new EventEmitter<boolean>();
    .....

    clickButton(): void {
     .....
     this.onChangeDone.emit(true);
     ....
    }

How to input a data from parent to child component in Angular 2

At the parent  I have a flag is createOrUpdate want to be sent to child component, parent code is here :

HTML Tag:
...

<childcomp [createOrUpdate]="createOrUpdate" > </childcomp >

....

TS code part:

export class ParentComp {
    createOrUpdate: boolean = true; // true for create, false for update
...

At the child component, answer is @Input  and same named variable to catch the input:

export class ChildComp implements OnInit {

    @Input() createOrUpdate: boolean;
    buttonText: string = 'Create New Car';
...
    ngOnInit() {
        if (this.createOrUpdate)
            this.buttonText = 'Create New Car';
        else this.buttonText = 'Update Car';
    }
....

 

How to create GUID or UUID in angular 2

There is a tool called angular2-uuid can do this:

npm install angular2-uuid --save

And in your code you can use it.

import { UUID } from 'angular2-uuid';
...
let uuid = UUID.UUID();

CentOS 7 firewall basic

Wayne Zh

CentOS using firewalld ( not iptables) as firewall. It is a zone based firwall. By default, your network interface’s subnet will be add to trusted zone. You can use these command to check the status and setttings:

sudo systemctl status firewalld

sudo firewall-cmd --list-all-zones

Basic control and start

sudo systemctl disable firewalld
sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo systemctl stop firewalld

If you want to add a subnet to trusted zone:

sudo firewall-cmd --permanent --zone=trusted --add-source=192.168.101.0/24
sudo firewall-cmd --reload
sudo firewall-cmd --list-all-zones