Skip to content

Commit 821029f

Browse files
committed
Update readme for new properties
1 parent 0a4acd9 commit 821029f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,16 @@ Get the duration of the entire file in seconds
5353
let duration = testFingerprint.duration // 46.0
5454
```
5555

56+
Get the fingerprint in its raw form as an array of unsigned 32 bit integers
57+
58+
``` swift
59+
let rawFingerprint = testFingerprint.raw // [4107342261, 4107276695, ... ]
60+
```
61+
5662
Get the fingerprint as base64 representation
5763

5864
``` swift
59-
let base64FingerprintString = testFingerprint.fingerprint // "AQABYJGikFSmJBCPijt6Hq..."
65+
let base64FingerprintString = testFingerprint.base64 // "AQABYJGikFSmJBCPijt6Hq..."
6066
```
6167

6268
Get the fingerprints hash as binary string
@@ -65,6 +71,12 @@ Get the fingerprints hash as binary string
6571
let binaryHashString = testFingerprint.hash // "01110100010011101010100110100100"
6672
```
6773

74+
Instantiate a fingerprint object from its raw form, algorithm and and entire file duration
75+
76+
``` swift
77+
let newFingerprint = AudioFingerprint(from: rawFingerprint, algorithm: .test2, duration: duration)
78+
```
79+
6880
Instantiate a fingerprint object from its base64 representation and entire file duration
6981

7082
``` swift

0 commit comments

Comments
 (0)