import { openAsBlob } from "node:fs";
import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.pronunciations.pronunciationsUploadCsv({
file: await openAsBlob("example.file"),
});
console.log(result);
}
run();{
"revision": 123,
"hash": "<string>",
"entries": 123,
"uploaded_by": "<string>",
"uploaded_at": "2023-11-07T05:31:56Z"
}import { openAsBlob } from "node:fs";
import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.pronunciations.pronunciationsUploadCsv({
file: await openAsBlob("example.file"),
});
console.log(result);
}
run();{
"revision": 123,
"hash": "<string>",
"entries": 123,
"uploaded_by": "<string>",
"uploaded_at": "2023-11-07T05:31:56Z"
}CSV file containing pronunciation overrides