API open - Joungkyun/python-krisp GitHub Wiki

SYNOPSIS

import krisp;

(object) open ([database [, error]])

database (optional)

Specifies krisp database file path. If you give empty value, libkrisp is executes by default value that set libkrisp compile times.

error (optional)

Set this variable, if occurs error on open method, allocates error messages on this variable.

DESCRIPTION

Open the krisp database and return database handle.

EXAMPLE

import krisp;

err = [];
p = krisp.open ('', err)

if ( p == None ) :
    print ("Error: %s" % err[0])
    sys.exit (1)

krisp.close (p)

SEE ALSO

close, set_debug, set_mtime_interval