Skip to content

Commit

Permalink
Update readme for new properties
Browse files Browse the repository at this point in the history
  • Loading branch information
wallisch committed Feb 2, 2024
1 parent 0a4acd9 commit 821029f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,16 @@ Get the duration of the entire file in seconds
let duration = testFingerprint.duration // 46.0
```

Get the fingerprint in its raw form as an array of unsigned 32 bit integers

``` swift
let rawFingerprint = testFingerprint.raw // [4107342261, 4107276695, ... ]
```

Get the fingerprint as base64 representation

``` swift
let base64FingerprintString = testFingerprint.fingerprint // "AQABYJGikFSmJBCPijt6Hq..."
let base64FingerprintString = testFingerprint.base64 // "AQABYJGikFSmJBCPijt6Hq..."
```

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

Instantiate a fingerprint object from its raw form, algorithm and and entire file duration

``` swift
let newFingerprint = AudioFingerprint(from: rawFingerprint, algorithm: .test2, duration: duration)
```

Instantiate a fingerprint object from its base64 representation and entire file duration

``` swift
Expand Down

0 comments on commit 821029f

Please sign in to comment.