Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9bbc68e
Default voiceovers as one MP3 a view: Japan's script, the sound tools…
claude Nov 28, 2026
5ebda20
Scripts for default voiceovers can be written through the function wi…
claude Nov 28, 2026
a9d95ce
Default voiceover scripts for the other 229 wiki views
claude Nov 28, 2026
9b70c85
tools/voice/all.mjs: make and upload every voiceover not yet in the s…
claude Nov 28, 2026
e29f6ec
Voiceover timings for the views made so far
claude Nov 28, 2026
de67dd6
Voiceover timings for the views made so far
claude Nov 28, 2026
0f9048c
tools/voice: one script for a Mac (mac.sh) that makes every voiceover…
claude Nov 28, 2026
cc1d8e1
Voiceover timings for the views made so far
claude Nov 28, 2026
29589ef
mac.sh: update an existing copy, say which step failed
claude Nov 28, 2026
795bba8
Take the Mac script out of the repository
claude Nov 28, 2026
f5b3c13
Voiceover timings for every wiki view, from the store
claude Nov 28, 2026
edbe016
A wiki view's default voiceover is told as it is: no rewrite or other…
claude Nov 28, 2026
b2b8c0d
Music under the voiceover a little quieter
claude Nov 28, 2026
6223615
AGENTS.md: note the music level history
claude Nov 28, 2026
573fcde
Music under the voiceover at the usual background level
claude Nov 28, 2026
e9e3c93
Voiceover: set off for the next card as a line ends, so lines follow …
claude Nov 28, 2026
c257b7e
Voiceover: allow for play easing up to speed when setting off early
claude Nov 28, 2026
ab3a3d0
Voiceover: about a second between lines; the marker of the time line …
claude Nov 28, 2026
c13ca0c
Time line: marker exactly on the dot, as measured
claude Nov 28, 2026
ca590d8
Pressing an entry on the time line during play glides there and play …
claude Nov 28, 2026
a1f50a4
Export: take a wiki view's voiceover from its one file
claude Nov 28, 2026
749512b
Voice follows a press or drag on the time line during play
claude Nov 28, 2026
f803e41
Time line: entries to come keep their dot, only the name waits
claude Nov 28, 2026
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ site/sitemap.xml
tools/film/node_modules/
tools/film/package-lock.json
tools/film/.session.json
tools/voice/node_modules
tools/voice/package-lock.json
tools/voice/out/
11 changes: 6 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ How the page is put together:
- **Voiceover and export, round 5 (Nov 2026, asked for), which replaces the rounds above where they differ.**
The sound switch is a row in the menu by play ("Sound", `#sound-seg`), not a button of its own beside play
(`#sound` is kept, unseen); the menu is headed "Sound and voice" and its one speed is "Play speed", which the
voice follows. Under a voice the music is louder than it first was (`MUSIC_UNDER` 0.14 on the page, 0.16 in a
film; it was found "a little bit too subtle"). The export dialog has no "Audio only" (the engine can still
voice follows. Under a voice the music is louder than it first was (`MUSIC_UNDER` 0.05 on the page, 0.06 in a
film; it was found "a little bit too subtle" at 0.09, then a bit strong at 0.14, 0.1 and 0.08; the usual level under a voice is wanted, Nov 2026). The export dialog has no "Audio only" (the engine can still
make the WAV). Scene is "Default" (as play shows it: the globe, and the stars where entries have no place)
or "Full view". Quality is Quick test (240p, the smallest and fastest, for checking a film first), 720p or 1080p (4K and 8K were offered and then removed on request, Nov 2026; `QUALITY`; `canSize()` in `site/export.js` asks the
browser's encoder, and a size it cannot make is not offered). The dialog has a foot of its own (`.exf`):
Expand Down Expand Up @@ -441,9 +441,9 @@ How the page is put together:
`globe.intro()` does no glide from the whole globe. The globe comes in at the first entry that has a place.
- **The time line at the foot shows what has been told, not what is to come (Nov 2026, asked for; this replaces
what the points above say about the marker standing at the left).** The marker of the strip stands towards the right
(`nowAt()` in `site/globe.js`) and just before the entry in front, whose dot comes first, so the reader is seen
going to it (asked for, Nov 2026, in both directions); what was passed stays in sight at
its left, and what is still to come is not shown until its turn, coming in from the right ("those items not yet
(`nowAt()` in `site/globe.js`); at a card it stands right on the entry's dot (`DOT_SHIFT`; asked for, Nov 2026,
after it stood just before it), and between cards it travels from dot to dot, in both directions; what was passed stays in sight at
its left, and what is still to come shows only its dot (an empty ring) until its turn, when its name comes in (asked for, Nov 2026) ("those items not yet
visible should not be in timeline"). It is so in both directions of the timeline, and the exported film draws
its time line the same way (`shelf()` in `site/export.js`; change the two together).
- **A default voiceover for a built timeline (Nov 2026, asked for).** `data/community/<owner>/voices/<view>.json`
Expand Down Expand Up @@ -487,6 +487,7 @@ How the page is put together:
file's name, until the reader closes it with its cross (`exported()` in `site/account.js`, `#ex-done`); not a toast.
- **Arrows during play (Nov 2026, asked for).** While automatic play travels, the left and right arrow keys glide
to the entry before or the next one and play goes on (`playSkip()` in `site/app.js`); they no longer pause it.
A name on the time line, a small picture at the left or a pin pressed during play does the same (`playTo()`).
Standing still they travel by hand as before, and with "Play: Arrow keys" they step (`playStep()`).
- **Ask AI folds (Nov 2026, asked for).** Folded (`body.ask-min`) the Ask AI box is a small "Ask AI" pill in the
middle, a little lower than the open box; a press opens it again (`#ask.open`), and the small arrow at the end of
Expand Down
32 changes: 32 additions & 0 deletions data/community/wiki/voices/afghanistan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"style": "measured, serious documentary narrator",
"audio": { "voice": "af_heart", "v": "530af3324a1c", "secs": 220.07, "cues": [[0,9.45],[9.8,18.77],[19.12,29.12],[29.48,37.77],[38.12,45.2],[45.55,54.15],[54.5,62.75],[63.1,70.83],[71.17,78.55],[78.9,86.1],[86.45,97.53],[97.88,105.85],[106.2,115],[115.35,123.65],[124,130.55],[130.9,138.2],[138.55,147.1],[147.45,154.9],[155.25,162.55],[162.9,171.05],[171.4,180.4],[180.75,188.93],[189.28,199.38],[199.72,206.85],[207.2,213.9],[214.25,219.72]] },
"lines": [
{ "id": "intro", "text": "A land of high mountains at the crossroads of Asia, where empires came and went and the Silk Road passed through. This is the story of Afghanistan." },
{ "id": "herat", "text": "In the west, Herat was already a city some two and a half thousand years ago. Much later it would shine as a centre of Timurid art and learning." },
{ "id": "kushan-empire", "text": "Around the time of Christ, the Kushans built an empire on the Silk Road. Their gold coins honoured many gods, and they helped Buddhism travel on to China." },
{ "id": "buddhas-of-bamiyan", "text": "In the Bamiyan valley, two giant Buddhas were carved into a sandstone cliff. They watched over the old road for some fifteen centuries." },
{ "id": "ghaznavids", "text": "In the tenth century a Turkish dynasty rose at Ghazni, and from there its armies raided deep into India." },
{ "id": "minaret-of-jam", "text": "In the 1190s, in a remote mountain valley, builders raised the Minaret of Jam, a tower of patterned brick that still stands." },
{ "id": "ahmad-shah-durrani", "text": "Centuries later, in 1722, Ahmad Shah Durrani was born. He would unite the Afghan tribes under one crown." },
{ "id": "afghanistan", "text": "In 1747 he was chosen as king, and the land took the shape of the country we call Afghanistan." },
{ "id": "durrani-empire", "text": "His Durrani Empire stretched far beyond today's borders, and is seen as the beginning of the modern Afghan state." },
{ "id": "kabul", "text": "In 1776 the capital moved to Kabul, in a high valley of the Hindu Kush, and there it has stayed." },
{ "id": "first-anglo-afghan-war", "text": "Then Britain and Russia began their contest for Central Asia, the Great Game. In 1839 a British army marched in, and by 1842 it had been wiped out." },
{ "id": "second-anglo-afghan-war", "text": "Britain came back in 1878. This time it left Afghanistan's dealings with the outside world in British hands." },
{ "id": "amanullah-khan", "text": "In 1892 Amanullah Khan was born. As king he would win full independence and try to bring the country into the modern age." },
{ "id": "mohammad-daoud-khan", "text": "Mohammad Daoud Khan, born in 1909, would serve as prime minister, overthrow the monarchy and fall himself in a coup." },
{ "id": "mohammed-zahir-shah", "text": "Zahir Shah, born in 1914, would be Afghanistan's last king, reigning for forty years." },
{ "id": "afghan-independence-1919", "text": "In 1919, after a short war with Britain, Afghanistan took full control of its own affairs at last." },
{ "id": "ashraf-ghani", "text": "Ashraf Ghani was born in 1949. Decades later he would be president, until he fled as the Taliban took Kabul." },
{ "id": "ahmad-shah-massoud", "text": "Ahmad Shah Massoud, born in 1953, became the commander who fought first the Soviets, then the Taliban." },
{ "id": "hamid-karzai", "text": "Hamid Karzai, born in 1957, would lead the country after the Taliban fell in 2001." },
{ "id": "saur-revolution", "text": "In 1978 communists seized power in a coup, Daoud was killed, and Afghanistan's long years of war began." },
{ "id": "soviet-afghan-war", "text": "The next year Soviet troops poured in to prop up the government. Rebels backed from abroad fought them for ten years, until the Soviets withdrew." },
{ "id": "taliban", "text": "In the chaos that followed, a new Islamist movement emerged in 1994. The Taliban took Kabul two years later." },
{ "id": "war-in-afghanistan-2001-2021", "text": "After the attacks of September 2001, the United States and its allies invaded and drove the Taliban from power. The war lasted twenty years." },
{ "id": "fall-of-kabul-2021", "text": "In the summer of 2021, as the last American forces left, the Taliban swept back into Kabul." },
{ "id": "2023-herat-earthquakes", "text": "And in October 2023 earthquakes struck near Herat, killing more than fourteen hundred people." },
{ "id": "outro", "text": "From the Buddhas of Bamiyan to the streets of Kabul, Afghanistan's people have endured it all." }
]
}
58 changes: 58 additions & 0 deletions data/community/wiki/voices/age-of-exploration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"style": "steady, curious history narrator, quietly adventurous",
"audio": { "voice": "af_heart", "v": "86dbb29360a3", "secs": 467.55, "cues": [[0,9],[9.35,20.7],[21.05,31.23],[31.57,39.45],[39.8,47.12],[47.48,56.77],[57.12,68.05],[68.4,78.55],[78.9,87.65],[88,94.97],[95.33,103.78],[104.12,111.5],[111.85,120.33],[120.67,128.45],[128.8,136.95],[137.3,143.88],[144.22,152.6],[152.95,160.3],[160.65,168.53],[168.88,176.82],[177.18,185.5],[185.85,194],[194.35,203.3],[203.65,213.9],[214.25,222.1],[222.45,232.2],[232.55,242.97],[243.32,252.88],[253.22,261.4],[261.75,269.55],[269.9,277.65],[278,287.65],[288,298.4],[298.75,306.55],[306.9,315.35],[315.7,325.73],[326.07,334.48],[334.82,344],[344.35,351.62],[351.98,359.82],[360.18,369.52],[369.88,378.3],[378.65,387.4],[387.75,396.07],[396.43,406.32],[406.68,414.85],[415.2,423.02],[423.38,432.95],[433.3,440.02],[440.38,448.3],[448.65,460.68],[461.02,467.2]] },
"lines": [
{ "id": "intro", "text": "For centuries the oceans kept the continents apart. Then sailors set out into the unknown, and in a few hundred years the whole world was joined." },
{ "id": "leif-erikson", "text": "Long before Columbus, around the year 1000, the Norseman Leif Erikson reached North America and called it Vinland. A Norse site in Newfoundland proves the sagas right." },
{ "id": "marco-polo", "text": "Two centuries later, the Venetian merchant Marco Polo crossed Asia to the court of Kublai Khan, and his book opened European eyes to the riches of the East." },
{ "id": "ibn-battuta", "text": "Then came Ibn Battuta of Morocco, who spent some thirty years on the road, from West Africa to China, and wrote it all down." },
{ "id": "zheng-he", "text": "In Ming China, the admiral Zheng He was born, a man who would lead some of the largest fleets the world had ever seen." },
{ "id": "prince-henry-the-navigator", "text": "In Portugal, Prince Henry, later called the Navigator, backed voyage after voyage down the coast of West Africa, though he hardly sailed himself." },
{ "id": "treasure-voyages", "text": "From 1405, Zheng He's treasure fleets crossed the Indian Ocean seven times, as far as East Africa, showing off Ming power. Then China turned inward." },
{ "id": "portuguese-empire", "text": "Portugal, meanwhile, took Ceuta in North Africa in 1415, the first step of an empire of trading posts that would reach from Brazil to Macau." },
{ "id": "bartolomeu-dias", "text": "In 1488 Bartolomeu Dias rounded the southern tip of Africa, the Cape of Good Hope, and proved there was a sea route to Asia." },
{ "id": "john-cabot", "text": "John Cabot, an Italian sailing for England, would reach the coast of North America in 1497." },
{ "id": "christopher-columbus", "text": "Christopher Columbus, born in Genoa, would sail west for Spain and reach the Caribbean, though to the end he believed he had found Asia." },
{ "id": "afonso-de-albuquerque", "text": "Afonso de Albuquerque would seize Goa, Malacca and Hormuz, and build Portugal a chain of forts across Asia." },
{ "id": "amerigo-vespucci", "text": "Amerigo Vespucci, sailing along South America, saw that it was a new continent, not Asia. The Americas would carry his name." },
{ "id": "moctezuma-ii", "text": "Across the ocean, Moctezuma the Second would rule the Aztec Empire, until he met the Spaniards in his own capital." },
{ "id": "pedro-alvares-cabral", "text": "Pedro Alvares Cabral, bound for India, would swing far west and reach Brazil in 1500, claiming it for Portugal." },
{ "id": "vasco-da-gama", "text": "Vasco da Gama would make the first voyage by sea from Europe to India, a route that made Portugal rich." },
{ "id": "vasco-nunez-de-balboa", "text": "Vasco Nunez de Balboa would cross Panama in 1513 and become the first European to see the Pacific from the Americas." },
{ "id": "francisco-pizarro", "text": "Francisco Pizarro would lead a small band into the Inca Empire, capture its ruler and take Peru for Spain." },
{ "id": "ferdinand-magellan", "text": "Ferdinand Magellan, a Portuguese sailing for Spain, would find the strait at the bottom of South America that bears his name." },
{ "id": "hernan-cortes", "text": "Hernan Cortes would land in Mexico in 1519 and, with Indigenous allies, bring down the Aztec Empire." },
{ "id": "juan-sebastian-elcano", "text": "And Juan Sebastian Elcano, a Basque sailor, would bring Magellan's last ship home, the first to sail all the way around the world." },
{ "id": "jacques-cartier", "text": "Jacques Cartier would sail up the St Lawrence for France, and give us a local word for a village, kanata, the source of the name Canada." },
{ "id": "voyages-of-columbus", "text": "Then, in 1492, Columbus set sail with three ships and crossed the Atlantic to the Caribbean. He would make four voyages in all." },
{ "id": "columbian-exchange", "text": "What followed was the Columbian exchange. Potatoes, maize and horses crossed the ocean, and so did smallpox, which killed vast numbers in the Americas." },
{ "id": "spanish-empire", "text": "From those voyages grew the Spanish Empire, whose silver mines would shape world trade and make Spanish a global language." },
{ "id": "treaty-of-tordesillas", "text": "In 1494 Spain and Portugal drew a line down the Atlantic and split the new lands between them. It is why Brazil speaks Portuguese today." },
{ "id": "da-gama-first-voyage", "text": "In 1497 Vasco da Gama sailed round Africa and across the Indian Ocean to Calicut, opening a direct sea road between Europe and Asia." },
{ "id": "atlantic-slave-trade", "text": "The darkest trade followed: for more than three centuries, millions of Africans were shipped in chains across the Atlantic to work the plantations and mines." },
{ "id": "atahualpa", "text": "In the Andes, Atahualpa would win a civil war to rule the Incas, only to be captured and executed by Pizarro's men." },
{ "id": "waldseemuller-map", "text": "In 1507 a map by Martin Waldseemuller was the first to show a separate new continent, and to call it America." },
{ "id": "francisco-de-orellana", "text": "Francisco de Orellana would become the first European to travel the whole length of the Amazon, in 1542." },
{ "id": "gerardus-mercator", "text": "Gerardus Mercator, a Flemish mapmaker, would draw a map in 1569 that let sailors steer by straight lines, a projection still in use." },
{ "id": "magellan-elcano-circumnavigation", "text": "In 1519 five Spanish ships set out to reach the Spice Islands by sailing west. Magellan died on the way, but three years later one ship came home." },
{ "id": "fall-of-tenochtitlan", "text": "Meanwhile in Mexico, Cortes and his allies besieged and took the Aztec capital, where Mexico City stands today." },
{ "id": "spanish-conquest-of-the-inca-empire", "text": "A decade later, Pizarro's small force, helped by disease and an Inca civil war, began the conquest of the Inca Empire." },
{ "id": "francis-drake", "text": "England joined the race. Francis Drake raided Spanish treasure ships and, from 1577 to 1580, sailed all the way around the world." },
{ "id": "henry-hudson", "text": "Henry Hudson would search for a northern way to Asia, and leave his name on a river, a strait and a bay before his crew set him adrift." },
{ "id": "manila-galleon", "text": "From 1565 Spanish galleons sailed between Manila and Mexico, linking Asia and the Americas for two and a half centuries." },
{ "id": "willem-janszoon", "text": "The Dutchman Willem Janszoon would, in 1606, become the first European known to land in Australia." },
{ "id": "samuel-de-champlain", "text": "Samuel de Champlain would found Quebec in 1608 and explore the Great Lakes, earning the title father of New France." },
{ "id": "east-india-company", "text": "In 1600 Elizabeth the First chartered the English East India Company. A trading firm, it would grow into the ruler of much of India." },
{ "id": "dutch-east-india-company", "text": "Two years later the Dutch founded their own, selling shares to the public. With fleets and forts across Asia, it led the spice trade." },
{ "id": "abel-tasman", "text": "Abel Tasman would sail from Batavia in 1642 and become the first European known to reach Tasmania and New Zealand." },
{ "id": "jamestown-colony", "text": "In 1607 English settlers founded Jamestown in Virginia, the first English colony in America that lasted." },
{ "id": "mayflower", "text": "In 1620 the Mayflower carried the Pilgrims across the Atlantic to found Plymouth Colony, a voyage that became an American founding story." },
{ "id": "new-amsterdam", "text": "The Dutch built a trading town on Manhattan, New Amsterdam. In 1664 the English took it, and named it New York." },
{ "id": "vitus-bering", "text": "Vitus Bering, a Dane in Russian service, would find the narrow strait between Asia and America that now bears his name." },
{ "id": "john-harrison", "text": "John Harrison, a clockmaker, would build timekeepers accurate enough at sea to solve the riddle of longitude, so ships could finally know where they were." },
{ "id": "james-cook", "text": "And James Cook would make three great voyages across the Pacific, before being killed in a clash at Hawaii." },
{ "id": "hms-endeavour", "text": "His ship was the Endeavour, a converted coal ship, which carried him to Tahiti, New Zealand and the east coast of Australia." },
{ "id": "first-voyage-of-cook", "text": "In 1768 Cook sailed to Tahiti to watch Venus cross the Sun, then charted New Zealand and eastern Australia, as his scientists gathered plants and animals new to Europe." },
{ "id": "outro", "text": "By Cook's time, the oceans no longer divided the world. They joined it, for better and for worse." }
]
}
Loading
Loading