File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,16 @@ Get the duration of the entire file in seconds
53
53
let duration = testFingerprint.duration // 46.0
54
54
```
55
55
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
+
56
62
Get the fingerprint as base64 representation
57
63
58
64
``` swift
59
- let base64FingerprintString = testFingerprint.fingerprint // "AQABYJGikFSmJBCPijt6Hq..."
65
+ let base64FingerprintString = testFingerprint.base64 // "AQABYJGikFSmJBCPijt6Hq..."
60
66
```
61
67
62
68
Get the fingerprints hash as binary string
@@ -65,6 +71,12 @@ Get the fingerprints hash as binary string
65
71
let binaryHashString = testFingerprint.hash // "01110100010011101010100110100100"
66
72
```
67
73
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
+
68
80
Instantiate a fingerprint object from its base64 representation and entire file duration
69
81
70
82
``` swift
You can’t perform that action at this time.
0 commit comments