@audd/sdk 1.5.1 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Recognize from a URL:
|
|
|
21
21
|
```ts
|
|
22
22
|
import { AudD } from "@audd/sdk";
|
|
23
23
|
|
|
24
|
-
const audd = new AudD("
|
|
24
|
+
const audd = new AudD("your-api-token");
|
|
25
25
|
const song = await audd.recognize("https://audd.tech/example.mp3");
|
|
26
26
|
if (song) {
|
|
27
27
|
console.log(`${song.artist} — ${song.title}`);
|
|
@@ -34,7 +34,7 @@ Recognize a local file (Node):
|
|
|
34
34
|
import { AudD } from "@audd/sdk";
|
|
35
35
|
import { readFile } from "node:fs/promises";
|
|
36
36
|
|
|
37
|
-
const audd = new AudD("
|
|
37
|
+
const audd = new AudD("your-api-token");
|
|
38
38
|
|
|
39
39
|
// Pass a path…
|
|
40
40
|
const song = await audd.recognize("./clip.mp3");
|