Fixed some mistakes in my hasty edit

This commit is contained in:
Wessie 2013-12-19 01:39:36 +01:00
parent 94c4cc0d95
commit 2f19fcaa51

View file

@ -50,13 +50,13 @@ Start by creating a Dejavu object.
>>> djv = Dejavu(config)
```
Next, give the `fingerprint()` command three arguments:
Next, give the `fingerprint_directory` method three arguments:
* input directory to look for audio files
* audio extensions to look for in the input directory
* number of processes (optional)
```python
>>> djv.fingerprint("va_us_top_40/mp3", [".mp3"], 3)
>>> djv.fingerprint_directory("va_us_top_40/mp3", [".mp3"], 3)
```
For a large amount of files, this will take a while. However, Dejavu is robust enough you can kill and restart without affecting progress: Dejavu remembers which songs it fingerprinted and converted and which it didn't, and so won't repeat itself.
@ -67,7 +67,7 @@ You'll have a lot of fingerprints once it completes a large folder of mp3s:
5442376
```
Also, any subsequent calls to `fingerprint()` will fingerprint and add those songs to the database as well. It's meant to simulate a system where as new songs are released, they are fingerprinted and added to the database seemlessly without stopping the system.
Also, any subsequent calls to `fingerprint_file` or `fingerprint_directory` will fingerprint and add those songs to the database as well. It's meant to simulate a system where as new songs are released, they are fingerprinted and added to the database seemlessly without stopping the system.
## Recognizing
@ -85,7 +85,7 @@ There are two ways to recognize audio using Dejavu. You can use Dejavu interacti
}
```
Or by reading .wav files via scripting functions:
Or by reading files via scripting functions:
```python
>>> from dejavu.recognize import FileRecognizer