annotate bindings/python/README.txt @ 683:491b69dbeb4f
* Button text changes
* Table no longer editable
author |
mas01mj |
date |
Fri, 05 Mar 2010 16:59:38 +0000 |
parents |
113b2f294256 |
children |
159becb0701e |
rev |
line source |
map01bf@623
|
1 README.txt
|
map01bf@623
|
2
|
map01bf@623
|
3 to install, try:
|
map01bf@623
|
4
|
map01bf@623
|
5 python setup.py build
|
map01bf@623
|
6 python setup.py install
|
map01bf@623
|
7
|
map01bf@623
|
8 Notes:
|
map01bf@623
|
9 - a compatible build of audioDB (>=r914) needs to be linkable at runtime
|
map01bf@623
|
10 - currently only the direct C-api exposure layer is visible, so the calling semantics are a bit gross
|
map01bf@623
|
11
|
map01bf@623
|
12
|
map01bf@623
|
13 The actual query call is a bit of a mess, but will be more intuitive from the native python layer (to be written)...
|
map01bf@623
|
14 so the python bindings now have a complete path:
|
map01bf@623
|
15 >>import _pyadb
|
map01bf@623
|
16 >>aDB = _pyadb._pyadb_create("test.adb", 0,0,0)
|
map01bf@623
|
17 >>_pyadb._pyadb_status(aDB)
|
map01bf@623
|
18 >>_pyadb._pyadb_insertFromFile(aDB, "someFeats.mfcc12")
|
map01bf@623
|
19 ...(add some more data)
|
map01bf@623
|
20 >>result = _pyadb._pyadb_queryFromKey(aDB, "a Key in aDB", [options])
|
map01bf@623
|
21
|
map01bf@623
|
22 and then result has a nice dict of your results.
|
map01bf@623
|
23
|
map01bf@623
|
24
|
map01bf@623
|
25
|
map01bf@623
|
26 21 September 2009, Ben Fields, b.fields@gold.ac.uk |