Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add TTS support #1

Merged
merged 31 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a7c3117
feat: add markdown export
transitive-bullshit Oct 7, 2024
40b7470
feat: add WIP of audio export
transitive-bullshit Oct 7, 2024
0b65096
🐽
transitive-bullshit Oct 7, 2024
f00a6c9
feat: add unreal speech and fix openai TTS
transitive-bullshit Oct 7, 2024
6c4ed04
🐮
transitive-bullshit Oct 7, 2024
78d0099
feat: move unrealspeech TTS client to separate package
transitive-bullshit Oct 7, 2024
6750c20
transitive-bullshit Oct 7, 2024
c1a7c04
🌦
transitive-bullshit Oct 7, 2024
1608db5
🏖
transitive-bullshit Oct 7, 2024
2bdf3bf
🦎
transitive-bullshit Oct 8, 2024
6cdb1ce
🚑
transitive-bullshit Oct 8, 2024
f9c86d5
😛
transitive-bullshit Oct 8, 2024
4435013
💘
transitive-bullshit Oct 8, 2024
49106de
👿
transitive-bullshit Oct 8, 2024
33c3f58
📗
transitive-bullshit Oct 8, 2024
fb1ba18
🚶
transitive-bullshit Oct 8, 2024
ff09cbd
transitive-bullshit Oct 8, 2024
b4cb061
fix: openai-fetch
transitive-bullshit Oct 8, 2024
334a0f6
🐎
transitive-bullshit Oct 8, 2024
0fe87ae
transitive-bullshit Oct 8, 2024
bbe8ca2
🍒
transitive-bullshit Oct 8, 2024
bb267ac
🎖
transitive-bullshit Oct 8, 2024
98ea8e6
📢
transitive-bullshit Oct 8, 2024
4bcf8fb
transitive-bullshit Oct 8, 2024
4092362
transitive-bullshit Oct 8, 2024
709a5c9
transitive-bullshit Oct 8, 2024
175535d
🐹
transitive-bullshit Oct 8, 2024
ac61b0a
🥚
transitive-bullshit Oct 8, 2024
bd2aedd
😩
transitive-bullshit Oct 8, 2024
05c701a
🌐
transitive-bullshit Oct 8, 2024
bfc94f5
🥁
transitive-bullshit Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
39 changes: 39 additions & 0 deletions examples/B0819W19WD/book-preview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Revelation Space (The Inhibitor Trilogy)

> By Alastair Reynolds

**NOTE**: This is a **preview** containing only the first page for demo purposes.

---

## Table of Contents

- [Chapter 1](#chapter-1)

---

## Chapter 1

Mantell Sector, North Nekhebet, Resurgam, Delta Pavonis system, 2551

There was a razorstorm coming in.

Sylveste stood on the edge of the excavation and wondered if any of his labours would survive the night. The archaeological dig was an array of deep square shafts separated by baulks of sheer-sided soil: the classical Wheeler box-grid. The shafts went down tens of metres, walled by transparent cofferdams spun from hyperdiamond. A million years of stratified geological history pressed against the sheets. But it would take only one good dustfall—one good razorstorm—to fill the shafts almost to the surface.

“Confirmation, sir,” said one of his team, emerging from the crouched form of the first crawler. The man’s voice was muffled behind his breather mask. “Cuvier’s just issued a severe weather advisory for the whole North Nekhbet landmass. They’re advising all surface teams to return to the nearest base.”

“You’re saying we should pack up and drive back to Mantell?”

“It’s going to be a hard one, sir.” The man fidgeted, drawing the collar of his jacket tighter around his neck. “Shall I issue the general evacuation order?”

Sylveste looked down at the excavation grid, the sides of each shaft brightly lit by the banks of floodlights arrayed around the area. Pavonis never got high enough at these latitudes to provide much useful illumination; now, sinking towards the horizon and clotted by great cauls of dust, it was little more than a rusty-red smear, hard for his eyes to focus on. Soon dust devils would come, scurrying across the Ptero Steppes like so many overwound toy gyroscopes. Then the main thrust of the storm, rising like a black anvil.

“No,” he said. “There’s no need for us to leave. We’re well sheltered here—there’s hardly any erosion pattering on those boulders, in case you hadn’t noticed. If the storm becomes too harsh, we’ll shelter in the crawlers.”

The man looked at the rocks, shaking his head as if doubting the evidence of his ears. “Sir, Cuvier only issue an advisory of this severity once every year or two—it’s an order of magnitude above anything we’ve experienced before.”

“Speak for yourself,” Sylveste said, noticing the way the man’s gaze snapped involuntarily to his eyes and then off again, embarrassed. “Listen to me. We cannot afford to abandon this dig. Do you understand?”

---

_End of Preview_
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,34 @@
"test": "run-s test:*",
"test:format": "prettier --check \"**/*.{js,ts,tsx}\"",
"test:lint": "eslint .",
"test:tyggpecheck": "tsc --noEmit",
"test:typecheck": "tsc --noEmit",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@inquirer/prompts": "^7.0.0",
"dotenv": "^16.4.5",
"fluent-ffmpeg": "^2.1.3",
"globby": "^14.0.2",
"hash-object": "^5.0.1",
"hh-mm-ss": "^1.2.0",
"kindle-api-ky": "^1.0.1",
"openai-fetch": "^3.2.0",
"ky": "^1.7.2",
"node-id3": "^0.2.6",
"openai-fetch": "^3.3.1",
"p-map": "^7.0.2",
"pdfkit": "^0.15.0",
"playwright": "^1.47.2",
"playwright-core": "^1.47.2"
"playwright-core": "^1.47.2",
"unrealspeech-api": "^1.0.2"
},
"devDependencies": {
"@fisch0920/eslint-config": "^1.4.0",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "^22.4.0",
"@types/fluent-ffmpeg": "^2.1.26",
"@types/hh-mm-ss": "^1.2.3",
"@types/node": "^22.7.5",
"@types/pdfkit": "^0.13.5",
"del-cli": "^5.1.0",
"del-cli": "^6.0.0",
"delay": "^6.0.0",
"eslint": "^8.57.0",
"npm-run-all2": "^6.2.2",
Expand Down
Loading