Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

feat(library): the Audio page's Concat shelf - CC0 sounds from the assets repository, fetched when asked (#60)

Jareer20cef37d71b9
diff --git a/docs/AUDIO_LIBRARY.md b/docs/AUDIO_LIBRARY.md
new file mode 100644
index 00000000..e4e13fcc
--- /dev/null
+++ b/docs/AUDIO_LIBRARY.md
@@ -0,0 +1,105 @@
+# The Concat sound library
+
+The Library's **Audio** page has a **Concat** shelf of built-in sounds and
+music (#60). Nothing ships inside the app: the shelf reads a manifest from
+the [`concatapp/assets`](https://github.com/concatapp/assets) repository the
+first time someone asks for it (a "Load Concat sounds" button, never at
+startup), and each sound is downloaded the first time it is played or used,
+then checked against its SHA-256 and kept in the app's cache.
+
+This page is what the asset curator produces for that to work.
+
+## Layout in `concatapp/assets`
+
+```text
+audio/
+ manifest.json
+ whoosh-air-short.ogg
+ impact-low-thud.ogg
+ ...
+```
+
+The files sit flat in `audio/`. The app fetches the manifest from:
+
+```text
+https://raw.githubusercontent.com/concatapp/assets/main/audio/manifest.json
+```
+
+and each sound from, in order:
+
+1. the release mirror: `https://github.com/concatapp/assets/releases/download/audio-v1/<file>`
+2. the repository itself: `https://raw.githubusercontent.com/concatapp/assets/main/audio/<file>`
+
+Upload every file to the `audio-v1` release as well. Then a file that moves in
+the repository can't break the shelf. Whichever source the bytes come from,
+they are checked against the manifest's `sha256`. The URLs are constants in
+`src/crates/concat-host/src/models.rs`: `SOUNDS_MANIFEST`, `SOUNDS_REPO` and
+`SOUNDS_RELEASE`.
+
+Until `audio/manifest.json` exists (the request answers 404), the shelf says
+"Sound library coming soon".
+
+## `manifest.json`
+
+```json
+{
+ "version": 1,
+ "sounds": [
+ {
+ "id": "whoosh-air-short",
+ "name": "Air whoosh, short",
+ "category": "Whoosh",
+ "file": "whoosh-air-short.ogg",
+ "duration": 0.84,
+ "bytes": 18234,
+ "license": "CC0-1.0",
+ "source": "https://freesound.org/s/123456/",
+ "author": "someone",
+ "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
+ }
+ ]
+}
+```
+
+| Field | Required | What it is |
+|---|---|---|
+| `version` | yes | The manifest format: `1`. |
+| `sounds[].id` | yes | Stable for ever, unique, `[a-z0-9-]` only. Projects don't store it, but the app's cache does. |
+| `name` | yes | What the row shows. English. Keep it short and descriptive. |
+| `category` | yes | One of `Whoosh`, `Impact`, `Riser`, `Ambience`, `Music`. These five are translated in the app. Any other value shows only under "All". |
+| `file` | yes | The file name in `audio/`: a plain name, no folders. `.ogg` (Vorbis/Opus), `.mp3`, `.m4a`, `.flac` or `.wav`. |
+| `duration` | yes | Seconds, as a number. The row shows it before the file is downloaded. |
+| `bytes` | recommended | The file's size. It drives the progress bar. |
+| `license` | yes | `CC0-1.0`. Only CC0 is accepted. An entry with any other licence is left off the shelf. |
+| `source` | yes | Where the file was found (Freesound, Kenney, OpenGameArt…): the page a reviewer can check the licence on. |
+| `author` | no | Who made it, when known. CC0 owes no attribution, but it is kind to keep. |
+| `sha256` | yes | The SHA-256 of the file's bytes, lowercase hex, 64 characters. An entry without a valid digest is left off the shelf, and a download that doesn't match it is deleted. |
+
+Compute a digest with `shasum -a 256 <file>` (macOS/Linux) or
+`Get-FileHash -Algorithm SHA256 <file>` (Windows; lowercase the result).
+
+## Rules for the selection
+
+- **CC0 only**, so the sounds can be redistributed as a collection and used by
+ anyone without owing attribution. Pixabay's and Mixkit's licences forbid
+ passing their files on as a collection, so nothing from either.
+- Good sources: Freesound (filtered to CC0), Kenney and OpenGameArt CC0 packs.
+- Keep files small. Effects should be a few seconds long. Music beds should
+ be compressed (Ogg Vorbis around q5, or AAC around 160 kb/s) and ideally
+ under a few megabytes each.
+- Trim silence at the head, so a sound placed at the playhead starts there.
+ Normalise peaks to about −1 dBFS.
+- No recognisable voices, no trademarks, nothing that imitates a known
+ character or product sound.
+
+## How the app treats it
+
+- The manifest is cached at `<app data>/sounds/manifest.json`. Later sessions
+ show the shelf from that cache without going online. The shelf's Refresh
+ fetches it again.
+- A sound is cached at `<app data>/sounds/<first 12 characters of sha256>-<file>`.
+ It stays there until the cache is cleared. When a manifest changes a file's
+ bytes, the new digest gets a new file name.
+- Placing a sound copies it into the project's own `audio/` folder and
+ imports it into the bin, the same as the user's own sounds. Projects
+ never point into the cache.
diff --git a/src/crates/concat-host/src/dirs.rs b/src/crates/concat-host/src/dirs.rs
index 52e95bb2..e0627515 100644
--- a/src/crates/concat-host/src/dirs.rs
+++ b/src/crates/concat-host/src/dirs.rs
@@ -103,7 +103,7 @@ impl AppDirs {
/// The folders under `data`, each named where it is made: models, caches
/// and logs. What is not listed is the settings', and stays in `config`.
-const DATA_FOLDERS: [&str; 9] = [
+const DATA_FOLDERS: [&str; 10] = [
"cutout-models", // concat-vision, models.rs
"whisper-models", // concat-speech, transcribe.rs
"tts-models", // concat-speech, tts.rs
@@ -113,6 +113,7 @@ const DATA_FOLDERS: [&str; 9] = [
"logs", // logs.rs
"audio", // sounds.rs: the Audio page's own sounds; see `library`
"voices", // voices.rs: saved cloned voices; see `library`
+ "sounds", // sounds.rs: Concat's sounds, downloaded on first use
];
/// Moves what an older build kept under `from` - Windows kept models and
diff --git a/src/crates/concat-host/src/models.rs b/src/crates/concat-host/src/models.rs
index 7d0d450e..457fb08b 100644
--- a/src/crates/concat-host/src/models.rs
+++ b/src/crates/concat-host/src/models.rs
@@ -41,6 +41,29 @@ pub fn mirror(file: &str) -> String {
format!("https://github.com/{REPO}/releases/download/{RELEASE}/{file}")
}
+/// The Audio page's Concat sounds: the list of them, read the first time
+/// the shelf is asked for and never at startup. The schema, and where the
+/// files go, is `docs/AUDIO_LIBRARY.md`.
+pub const SOUNDS_MANIFEST: &str =
+ "https://raw.githubusercontent.com/concatapp/assets/main/audio/manifest.json";
+
+/// The repository the sounds live in.
+pub const SOUNDS_REPO: &str = "concatapp/assets";
+
+/// The release the sounds are mirrored on, so a file moved in the
+/// repository does not take a sound off the shelf.
+pub const SOUNDS_RELEASE: &str = "audio-v1";
+
+/// Where to try for a sound's file, in order: the release, then the
+/// repository. The bytes are checked against the manifest's digest
+/// whichever answers.
+pub fn sound_sources(file: &str) -> Vec<String> {
+ vec![
+ format!("https://github.com/{SOUNDS_REPO}/releases/download/{SOUNDS_RELEASE}/{file}"),
+ format!("https://raw.githubusercontent.com/{SOUNDS_REPO}/main/audio/{file}"),
+ ]
+}
+
/// A Hugging Face repository holding the same mirror, when there is one -
/// "owner/name". Hugging Face is what hf-mirror.com mirrors in turn, which
/// is how the models reach the people GitHub's downloads do not. Empty
diff --git a/src/crates/concat-host/src/sounds.rs b/src/crates/concat-host/src/sounds.rs
index 05a34848..98bbfb4d 100644
--- a/src/crates/concat-host/src/sounds.rs
+++ b/src/crates/concat-host/src/sounds.rs
@@ -10,6 +10,11 @@
//! envelope of it - sixty-four bars, read once at import - so the shelf
//! draws every card without decoding anything when it opens.
//!
+//! Beside them, Concat's own sounds: a manifest read from the assets
+//! repository when the shelf is first asked for, and each sound fetched
+//! on first use into `<data>/sounds/`, checked against its digest; see
+//! `docs/AUDIO_LIBRARY.md`.
+//!
//! Nothing here touches a project. A sound put on the timeline is copied
//! again into that project's own folder by the window, so a project never
//! points into the library and removing a sound from it breaks nothing.
@@ -276,6 +281,180 @@ fn now() -> u64 {
.map_or(0, |since| since.as_secs())
}
+// ── Concat's own sounds ─────────────────────────────────────────────────
+
+/// The Concat shelf's manifest, as `concatapp/assets/audio/manifest.json`
+/// has it; the schema is `docs/AUDIO_LIBRARY.md`.
+#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
+pub struct Catalogue {
+ /// The format: 1.
+ #[serde(default)]
+ pub version: u32,
+ /// The sounds, in the order the shelf shows them.
+ #[serde(default)]
+ pub sounds: Vec<Listed>,
+}
+
+/// One sound of Concat's.
+#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
+pub struct Listed {
+ /// Stable for ever: `[a-z0-9-]`.
+ pub id: String,
+ /// What the row shows.
+ pub name: String,
+ /// Whoosh, Impact, Riser, Ambience or Music.
+ #[serde(default)]
+ pub category: String,
+ /// The file's name in the repository's `audio/` folder.
+ pub file: String,
+ /// Seconds.
+ #[serde(default)]
+ pub duration: f64,
+ /// Its size, for the progress bar; 0 when not given.
+ #[serde(default)]
+ pub bytes: u64,
+ /// CC0-1.0, and nothing else is shown.
+ #[serde(default)]
+ pub license: String,
+ /// Where it was found.
+ #[serde(default)]
+ pub source: String,
+ /// Who made it, when known.
+ #[serde(default)]
+ pub author: String,
+ /// Lowercase hex: what the download must match.
+ #[serde(default)]
+ pub sha256: String,
+}
+
+impl Listed {
+ /// Whether the entry can be offered: a plain file name, an id of the
+ /// shape the cache keys on, a digest to check against, and CC0.
+ pub fn is_offered(&self) -> bool {
+ let license = self.license.to_ascii_uppercase();
+ !self.id.is_empty()
+ && self
+ .id
+ .chars()
+ .all(|c| c.is_ascii_lowercase() || c.is_ascii_digit() || c == '-')
+ && is_plain_name(&self.file)
+ && self.sha256.len() == 64
+ && self.sha256.chars().all(|c| c.is_ascii_hexdigit())
+ && (license == "CC0" || license == "CC0-1.0")
+ }
+}
+
+impl Catalogue {
+ /// Read from the manifest's bytes, keeping only the entries that can be
+ /// offered.
+ pub fn parse(bytes: &[u8]) -> Result<Catalogue, String> {
+ let mut catalogue: Catalogue = serde_json::from_slice(bytes)
+ .map_err(|error| format!("the sound list is not readable: {error}"))?;
+ catalogue.sounds.retain(Listed::is_offered);
+ for sound in &mut catalogue.sounds {
+ sound.sha256.make_ascii_lowercase();
+ }
+ Ok(catalogue)
+ }
+
+ /// The sound by its id.
+ pub fn get(&self, id: &str) -> Option<&Listed> {
+ self.sounds.iter().find(|sound| sound.id == id)
+ }
+}
+
+/// Where Concat's sounds and their manifest are cached: `<data>/sounds/`.
+pub fn cache_dir(dirs: &AppDirs) -> PathBuf {
+ dirs.data.join("sounds")
+}
+
+/// The manifest as last fetched, when it has been.
+pub fn cached_catalogue(dirs: &AppDirs) -> Option<Catalogue> {
+ let bytes = std::fs::read(cache_dir(dirs).join("manifest.json")).ok()?;
+ Catalogue::parse(&bytes).ok()
+}
+
+/// Fetches the manifest, and keeps it for the sessions after. `Ok(None)`
+/// when there is none yet - the repository answers 404 until the pack is
+/// published - which the shelf says as "coming soon" rather than as an
+/// error.
+pub fn fetch_catalogue(dirs: &AppDirs) -> Result<Option<Catalogue>, String> {
+ use std::io::Read;
+ let agent = ureq::AgentBuilder::new()
+ .timeout_connect(std::time::Duration::from_secs(15))
+ .timeout_read(std::time::Duration::from_secs(30))
+ .build();
+ let response = match agent.get(crate::models::SOUNDS_MANIFEST).call() {
+ Ok(response) => response,
+ Err(ureq::Error::Status(404, _)) => return Ok(None),
+ Err(error) => return Err(format!("the sound list did not answer: {error}")),
+ };
+ let mut bytes = Vec::new();
+ response
+ .into_reader()
+ .take(4 * 1024 * 1024)
+ .read_to_end(&mut bytes)
+ .map_err(|error| format!("the sound list did not arrive: {error}"))?;
+ let catalogue = Catalogue::parse(&bytes)?;
+ let dir = cache_dir(dirs);
+ if std::fs::create_dir_all(&dir).is_ok() {
+ let _ = std::fs::write(dir.join("manifest.json"), &bytes);
+ }
+ Ok(Some(catalogue))
+}
+
+/// Where `sound` is kept once downloaded: its digest's head in the name,
+/// so new bytes under the same name are a new file.
+pub fn cached_file(dirs: &AppDirs, sound: &Listed) -> PathBuf {
+ cache_dir(dirs).join(format!("{}-{}", &sound.sha256[..12], sound.file))
+}
+
+/// Downloads `sound` into the cache from the mirror, then the repository,
+/// and checks it against its digest; a file that does not match is
+/// deleted. Returns where it is. Blocks: a worker's.
+pub fn fetch_sound(
+ dirs: &AppDirs,
+ sound: &Listed,
+ cancel: &std::sync::atomic::AtomicBool,
+ progress: &mut dyn FnMut(u64, u64),
+) -> Result<PathBuf, String> {
+ let target = cached_file(dirs, sound);
+ if target.is_file() {
+ return Ok(target);
+ }
+ let dir = cache_dir(dirs);
+ std::fs::create_dir_all(&dir)
+ .map_err(|error| format!("could not create {}: {error}", dir.display()))?;
+ let partial = target.with_extension("partial");
+ let mut last = String::new();
+ for url in crate::models::sound_sources(&sound.file) {
+ match crate::models::download(
+ &url,
+ &partial,
+ sound.bytes,
+ cancel,
+ "cancelled",
+ progress,
+ ) {
+ Ok(_) => match crate::models::verify(&partial, &sound.sha256) {
+ Ok(()) => {
+ std::fs::rename(&partial, &target).map_err(|error| {
+ format!("could not keep {}: {error}", target.display())
+ })?;
+ return Ok(target);
+ }
+ Err(error) => {
+ let _ = std::fs::remove_file(&partial);
+ last = error;
+ }
+ },
+ Err(error) if error == "cancelled" => return Err(error),
+ Err(error) => last = error,
+ }
+ }
+ Err(last)
+}
+
#[cfg(test)]
mod tests {
use super::*;
@@ -341,6 +520,30 @@ mod tests {
let _ = std::fs::remove_dir_all(&dir);
}
+ /// Only CC0 entries with a digest and a plain file name are offered.
+ #[test]
+ fn a_manifest_offers_only_what_it_can_check() {
+ let digest = "A".repeat(64);
+ let bytes = format!(
+ r#"{{"version":1,"sounds":[
+ {{"id":"whoosh-1","name":"Whoosh","category":"Whoosh","file":"w.ogg","duration":1.2,"license":"CC0-1.0","source":"s","sha256":"{digest}"}},
+ {{"id":"bad","name":"No digest","file":"x.ogg","license":"CC0"}},
+ {{"id":"paid","name":"Not CC0","file":"y.ogg","license":"CC-BY-4.0","sha256":"{digest}"}},
+ {{"id":"up","name":"Escapes","file":"../z.ogg","license":"CC0","sha256":"{digest}"}}
+ ]}}"#
+ );
+ let catalogue = Catalogue::parse(bytes.as_bytes()).expect("parses");
+ assert_eq!(catalogue.sounds.len(), 1);
+ let sound = catalogue.get("whoosh-1").unwrap();
+ assert_eq!(sound.sha256, "a".repeat(64), "digests compare in lowercase");
+ let dirs = AppDirs::under(Path::new("/cache"));
+ assert_eq!(
+ cached_file(&dirs, sound),
+ Path::new("/cache/sounds/aaaaaaaaaaaa-w.ogg")
+ );
+ assert!(Catalogue::parse(b"not json").is_err());
+ }
+
/// An index that names a file outside the folder is not believed.
#[test]
fn an_index_cannot_point_out_of_the_folder() {
diff --git a/src/crates/concat/locales/ar.json b/src/crates/concat/locales/ar.json
index e2d8e13f..66ef93b2 100644
--- a/src/crates/concat/locales/ar.json
+++ b/src/crates/concat/locales/ar.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "أصبح {0} بلا مفتاح الآن",
"sounds.addedMany": "أُضيف {0} أصوات إلى مكتبتك",
"sounds.addedOne": "أُضيف صوت إلى مكتبتك",
+ "sounds.all": "الكل",
+ "sounds.catAmbience": "أجواء",
+ "sounds.catImpact": "ارتطام",
+ "sounds.catMusic": "موسيقى",
+ "sounds.catRiser": "تصاعد",
+ "sounds.catWhoosh": "حفيف",
+ "sounds.comingSoon": "مكتبة الأصوات قادمة قريبًا",
+ "sounds.concat": "أصوات Concat",
+ "sounds.concatHint": "مجانية للاستخدام في أي مكان (CC0). يُنزَّل الصوت أول مرة تشغّله أو تضيفه.",
"sounds.couldNotCopy": "تعذّر نسخ {0} إلى المشروع: {1}",
+ "sounds.downloadFailed": "تعذّر تنزيل {0}: {1}",
"sounds.importSounds": "استيراد أصوات",
+ "sounds.loadConcat": "تحميل أصوات Concat",
+ "sounds.loadConcatHint": "أصوات وموسيقى مجانية (CC0) لاستخدامها في أي شيء. تأتي القائمة من الإنترنت عندما تطلبها، ويُنزَّل كل صوت عند أول استخدام له.",
+ "sounds.loading": "جارٍ التحميل…",
"sounds.mine": "أصواتي",
"sounds.mineHint": "انقر على صوت لتسمعه، واضغط + لإضافته عند رأس التشغيل، أو اسحبه إلى المخطط الزمني. أصواتك موجودة هنا في كل مشروع.",
"sounds.mineHintPhone": "اضغط على صوت لتسمعه، و+ لإضافته عند رأس التشغيل. أصواتك موجودة هنا في كل مشروع.",
"sounds.noSoundsYet": "لا توجد أصوات خاصة بك بعد. استورد ملفات صوتية وستبقى في مكتبتك، جاهزة لكل مشروع.",
"sounds.notASound": "{0} ليس ملفًا صوتيًا",
+ "sounds.offline": "تعذّر الوصول إلى أصوات Concat. تحقّق من الاتصال وحاول مجددًا.",
"sounds.openProjectFirst": "افتح مشروعًا أولًا",
+ "sounds.refresh": "تحديث",
"sounds.removed": "أُزيل {0} من مكتبتك",
"sounds.sounds": "الأصوات",
+ "sounds.tryAgain": "حاول مجددًا",
"speech.aboutInCharacters": "نحو {0}:{1} بصوت {2} · {3} حرفًا",
"speech.american": "أمريكي",
"speech.anyVoiceRecording": "أي صوت، من تسجيل",
diff --git a/src/crates/concat/locales/bn.json b/src/crates/concat/locales/bn.json
index dade4cd5..10a0c150 100644
--- a/src/crates/concat/locales/bn.json
+++ b/src/crates/concat/locales/bn.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0}-এর এখন কোনো কী নেই",
"sounds.addedMany": "আপনার লাইব্রেরিতে {0}টি সাউন্ড যোগ হয়েছে",
"sounds.addedOne": "আপনার লাইব্রেরিতে একটি সাউন্ড যোগ হয়েছে",
+ "sounds.all": "সব",
+ "sounds.catAmbience": "পরিবেশ",
+ "sounds.catImpact": "ইমপ্যাক্ট",
+ "sounds.catMusic": "সংগীত",
+ "sounds.catRiser": "রাইজার",
+ "sounds.catWhoosh": "হুশ",
+ "sounds.comingSoon": "সাউন্ড লাইব্রেরি শিগগিরই আসছে",
+ "sounds.concat": "Concat সাউন্ড",
+ "sounds.concatHint": "যেকোনো জায়গায় বিনামূল্যে ব্যবহারযোগ্য (CC0)। প্রথমবার চালালে বা যোগ করলে সাউন্ড ডাউনলোড হয়।",
"sounds.couldNotCopy": "{0} প্রজেক্টে কপি করা যায়নি: {1}",
+ "sounds.downloadFailed": "{0} ডাউনলোড করা যায়নি: {1}",
"sounds.importSounds": "সাউন্ড ইমপোর্ট করুন",
+ "sounds.loadConcat": "Concat সাউন্ড লোড করুন",
+ "sounds.loadConcatHint": "যেকোনো কাজে ব্যবহারের জন্য বিনামূল্যের সাউন্ড ও সংগীত (CC0)। চাইলে তালিকাটি ইন্টারনেট থেকে আসে, আর প্রতিটি সাউন্ড প্রথমবার ব্যবহারের সময় ডাউনলোড হয়।",
+ "sounds.loading": "লোড হচ্ছে…",
"sounds.mine": "আমার সাউন্ড",
"sounds.mineHint": "শুনতে একটি সাউন্ডে ক্লিক করুন, প্লেহেডে যোগ করতে + চাপুন, বা টাইমলাইনে টেনে আনুন। আপনার সাউন্ডগুলো প্রতিটি প্রজেক্টে এখানে থাকে।",
"sounds.mineHintPhone": "শুনতে একটি সাউন্ডে ট্যাপ করুন, আর প্লেহেডে যোগ করতে +। আপনার সাউন্ডগুলো প্রতিটি প্রজেক্টে এখানে থাকে।",
"sounds.noSoundsYet": "এখনও আপনার নিজের কোনো সাউন্ড নেই। সাউন্ড ফাইল ইমপোর্ট করুন, সেগুলো আপনার লাইব্রেরিতে থাকবে, প্রতিটি প্রজেক্টের জন্য প্রস্তুত।",
"sounds.notASound": "{0} কোনো সাউন্ড ফাইল নয়",
+ "sounds.offline": "Concat সাউন্ডে পৌঁছানো যায়নি। সংযোগ দেখে আবার চেষ্টা করুন।",
"sounds.openProjectFirst": "আগে একটি প্রজেক্ট খুলুন",
+ "sounds.refresh": "রিফ্রেশ",
"sounds.removed": "আপনার লাইব্রেরি থেকে {0} সরানো হয়েছে",
"sounds.sounds": "সাউন্ড",
+ "sounds.tryAgain": "আবার চেষ্টা করুন",
"speech.aboutInCharacters": "প্রায় {0}:{1} · {2} · {3} অক্ষর",
"speech.american": "আমেরিকান",
"speech.anyVoiceRecording": "রেকর্ডিং থেকে যেকোনো কণ্ঠ",
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.json
index 971e725e..e59c85ce 100644
--- a/src/crates/concat/locales/de.json
+++ b/src/crates/concat/locales/de.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} ist jetzt nicht belegt",
"sounds.addedMany": "{0} Sounds wurden deiner Bibliothek hinzugefügt",
"sounds.addedOne": "Ein Sound wurde deiner Bibliothek hinzugefügt",
+ "sounds.all": "Alle",
+ "sounds.catAmbience": "Atmo",
+ "sounds.catImpact": "Aufprall",
+ "sounds.catMusic": "Musik",
+ "sounds.catRiser": "Riser",
+ "sounds.catWhoosh": "Whoosh",
+ "sounds.comingSoon": "Die Sound-Bibliothek kommt bald",
+ "sounds.concat": "Concat-Sounds",
+ "sounds.concatHint": "Überall frei nutzbar (CC0). Ein Sound wird beim ersten Abspielen oder Einfügen heruntergeladen.",
"sounds.couldNotCopy": "{0} konnte nicht ins Projekt kopiert werden: {1}",
+ "sounds.downloadFailed": "{0} konnte nicht heruntergeladen werden: {1}",
"sounds.importSounds": "Sounds importieren",
+ "sounds.loadConcat": "Concat-Sounds laden",
+ "sounds.loadConcatHint": "Kostenlose Sounds und Musik (CC0) für alles. Die Liste kommt aus dem Internet, wenn du sie anforderst, und jeder Sound wird bei der ersten Verwendung heruntergeladen.",
+ "sounds.loading": "Wird geladen…",
"sounds.mine": "Meine Sounds",
"sounds.mineHint": "Klicke auf einen Sound, um ihn zu hören, drücke +, um ihn am Abspielkopf einzufügen, oder zieh ihn auf die Zeitleiste. Deine Sounds sind in jedem Projekt hier.",
"sounds.mineHintPhone": "Tippe auf einen Sound, um ihn zu hören, und auf +, um ihn am Abspielkopf einzufügen. Deine Sounds sind in jedem Projekt hier.",
"sounds.noSoundsYet": "Noch keine eigenen Sounds. Importiere Audiodateien, dann bleiben sie in deiner Bibliothek, bereit für jedes Projekt.",
"sounds.notASound": "{0} ist keine Audiodatei",
+ "sounds.offline": "Die Concat-Sounds waren nicht erreichbar. Prüfe die Verbindung und versuch es noch einmal.",
"sounds.openProjectFirst": "Öffne zuerst ein Projekt",
+ "sounds.refresh": "Aktualisieren",
"sounds.removed": "{0} wurde aus deiner Bibliothek entfernt",
"sounds.sounds": "Sounds",
+ "sounds.tryAgain": "Erneut versuchen",
"speech.aboutInCharacters": "Etwa {0}:{1} in {2} · {3} Zeichen",
"speech.american": "Amerikanisch",
"speech.anyVoiceRecording": "Jede Stimme, aus einer Aufnahme",
diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.json
index f00d9929..4f7f5852 100644
--- a/src/crates/concat/locales/en.json
+++ b/src/crates/concat/locales/en.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} is unbound now",
"sounds.addedMany": "Added {0} sounds to your library",
"sounds.addedOne": "Added a sound to your library",
+ "sounds.all": "All",
+ "sounds.catAmbience": "Ambience",
+ "sounds.catImpact": "Impact",
+ "sounds.catMusic": "Music",
+ "sounds.catRiser": "Riser",
+ "sounds.catWhoosh": "Whoosh",
+ "sounds.comingSoon": "Sound library coming soon",
+ "sounds.concat": "Concat sounds",
+ "sounds.concatHint": "Free to use anywhere (CC0). A sound downloads the first time you play or add it.",
"sounds.couldNotCopy": "Could not copy {0} into the project: {1}",
+ "sounds.downloadFailed": "Could not download {0}: {1}",
"sounds.importSounds": "Import sounds",
+ "sounds.loadConcat": "Load Concat sounds",
+ "sounds.loadConcatHint": "Free sounds and music (CC0) to use in anything. The list comes from the internet when you ask for it, and each sound downloads the first time you use it.",
+ "sounds.loading": "Loading…",
"sounds.mine": "My sounds",
"sounds.mineHint": "Click a sound to hear it, press + to add it at the playhead, or drag it onto the timeline. Your sounds are here in every project.",
"sounds.mineHintPhone": "Tap a sound to hear it, and + to add it at the playhead. Your sounds are here in every project.",
"sounds.noSoundsYet": "No sounds of your own yet. Import sound files and they stay in your library, ready for every project.",
"sounds.notASound": "{0} is not a sound file",
+ "sounds.offline": "Could not reach the Concat sounds. Check the connection and try again.",
"sounds.openProjectFirst": "Open a project first",
+ "sounds.refresh": "Refresh",
"sounds.removed": "Removed {0} from your library",
"sounds.sounds": "Sounds",
+ "sounds.tryAgain": "Try again",
"speech.aboutInCharacters": "About {0}:{1} in {2} · {3} characters",
"speech.american": "American",
"speech.anyVoiceRecording": "Any voice, from a recording",
diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.json
index 76854b67..3ca1d820 100644
--- a/src/crates/concat/locales/es.json
+++ b/src/crates/concat/locales/es.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} ya no tiene tecla",
"sounds.addedMany": "Se añadieron {0} sonidos a tu biblioteca",
"sounds.addedOne": "Se añadió un sonido a tu biblioteca",
+ "sounds.all": "Todos",
+ "sounds.catAmbience": "Ambiente",
+ "sounds.catImpact": "Impactos",
+ "sounds.catMusic": "Música",
+ "sounds.catRiser": "Subidas",
+ "sounds.catWhoosh": "Zumbidos",
+ "sounds.comingSoon": "La biblioteca de sonidos llegará pronto",
+ "sounds.concat": "Sonidos de Concat",
+ "sounds.concatHint": "Libres para usar en cualquier sitio (CC0). Un sonido se descarga la primera vez que lo reproduces o lo añades.",
"sounds.couldNotCopy": "No se pudo copiar {0} al proyecto: {1}",
+ "sounds.downloadFailed": "No se pudo descargar {0}: {1}",
"sounds.importSounds": "Importar sonidos",
+ "sounds.loadConcat": "Cargar sonidos de Concat",
+ "sounds.loadConcatHint": "Sonidos y música gratis (CC0) para usar en lo que sea. La lista llega de internet cuando la pides, y cada sonido se descarga la primera vez que lo usas.",
+ "sounds.loading": "Cargando…",
"sounds.mine": "Mis sonidos",
"sounds.mineHint": "Haz clic en un sonido para oírlo, pulsa + para añadirlo en el cabezal o arrástralo a la línea de tiempo. Tus sonidos están aquí en todos los proyectos.",
"sounds.mineHintPhone": "Toca un sonido para oírlo y + para añadirlo en el cabezal. Tus sonidos están aquí en todos los proyectos.",
"sounds.noSoundsYet": "Todavía no tienes sonidos propios. Importa archivos de sonido y se quedarán en tu biblioteca, listos para cada proyecto.",
"sounds.notASound": "{0} no es un archivo de sonido",
+ "sounds.offline": "No se pudo acceder a los sonidos de Concat. Revisa la conexión y vuelve a intentarlo.",
"sounds.openProjectFirst": "Abre primero un proyecto",
+ "sounds.refresh": "Actualizar",
"sounds.removed": "Se quitó {0} de tu biblioteca",
"sounds.sounds": "Sonidos",
+ "sounds.tryAgain": "Reintentar",
"speech.aboutInCharacters": "Unos {0}:{1} en {2} · {3} caracteres",
"speech.american": "Americano",
"speech.anyVoiceRecording": "Cualquier voz, a partir de una grabación",
diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.json
index 8eeb3e9d..0c9fcb3a 100644
--- a/src/crates/concat/locales/fa.json
+++ b/src/crates/concat/locales/fa.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} اکنون بدون کلید است",
"sounds.addedMany": "{0} صدا به کتابخانه‌تان اضافه شد",
"sounds.addedOne": "یک صدا به کتابخانه‌تان اضافه شد",
+ "sounds.all": "همه",
+ "sounds.catAmbience": "فضا",
+ "sounds.catImpact": "ضربه",
+ "sounds.catMusic": "موسیقی",
+ "sounds.catRiser": "اوج‌گیر",
+ "sounds.catWhoosh": "ووش",
+ "sounds.comingSoon": "کتابخانهٔ صدا به‌زودی",
+ "sounds.concat": "صداهای Concat",
+ "sounds.concatHint": "استفادهٔ رایگان در هر جا (CC0). هر صدا اولین بار که پخش یا اضافه‌اش کنید دانلود می‌شود.",
"sounds.couldNotCopy": "کپی {0} در پروژه ممکن نشد: {1}",
+ "sounds.downloadFailed": "دانلود {0} ممکن نشد: {1}",
"sounds.importSounds": "وارد کردن صدا",
+ "sounds.loadConcat": "بارگیری صداهای Concat",
+ "sounds.loadConcatHint": "صدا و موسیقی رایگان (CC0) برای استفاده در هر کاری. فهرست وقتی بخواهید از اینترنت می‌آید و هر صدا اولین بار که استفاده‌اش کنید دانلود می‌شود.",
+ "sounds.loading": "در حال بارگیری…",
"sounds.mine": "صداهای من",
"sounds.mineHint": "روی یک صدا کلیک کنید تا آن را بشنوید، + را بزنید تا در محل نشانگر پخش اضافه شود، یا آن را به خط زمان بکشید. صداهای شما در هر پروژه اینجا هستند.",
"sounds.mineHintPhone": "روی یک صدا بزنید تا آن را بشنوید، و + را تا در محل نشانگر پخش اضافه شود. صداهای شما در هر پروژه اینجا هستند.",
"sounds.noSoundsYet": "هنوز صدایی از خودتان ندارید. فایل‌های صوتی را وارد کنید تا در کتابخانه‌تان بمانند و برای هر پروژه آماده باشند.",
"sounds.notASound": "{0} یک فایل صوتی نیست",
+ "sounds.offline": "دسترسی به صداهای Concat ممکن نشد. اتصال را بررسی کنید و دوباره امتحان کنید.",
"sounds.openProjectFirst": "ابتدا یک پروژه باز کنید",
+ "sounds.refresh": "تازه‌سازی",
"sounds.removed": "{0} از کتابخانه‌تان حذف شد",
"sounds.sounds": "صداها",
+ "sounds.tryAgain": "تلاش دوباره",
"speech.aboutInCharacters": "حدود {0}:{1} در {2} · {3} کاراکتر",
"speech.american": "آمریکایی",
"speech.anyVoiceRecording": "هر صدایی، از یک ضبط",
diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.json
index e3b60b0c..05271a15 100644
--- a/src/crates/concat/locales/fr.json
+++ b/src/crates/concat/locales/fr.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} n'a plus de touche",
"sounds.addedMany": "{0} sons ont été ajoutés à votre bibliothèque",
"sounds.addedOne": "Un son a été ajouté à votre bibliothèque",
+ "sounds.all": "Tous",
+ "sounds.catAmbience": "Ambiance",
+ "sounds.catImpact": "Impact",
+ "sounds.catMusic": "Musique",
+ "sounds.catRiser": "Montée",
+ "sounds.catWhoosh": "Whoosh",
+ "sounds.comingSoon": "La bibliothèque de sons arrive bientôt",
+ "sounds.concat": "Sons Concat",
+ "sounds.concatHint": "Libres d’usage partout (CC0). Un son se télécharge la première fois que vous l’écoutez ou l’ajoutez.",
"sounds.couldNotCopy": "Impossible de copier {0} dans le projet : {1}",
+ "sounds.downloadFailed": "Impossible de télécharger {0} : {1}",
"sounds.importSounds": "Importer des sons",
+ "sounds.loadConcat": "Charger les sons Concat",
+ "sounds.loadConcatHint": "Des sons et de la musique gratuits (CC0), utilisables partout. La liste vient d’internet quand vous la demandez, et chaque son se télécharge la première fois que vous l’utilisez.",
+ "sounds.loading": "Chargement…",
"sounds.mine": "Mes sons",
"sounds.mineHint": "Cliquez sur un son pour l’écouter, appuyez sur + pour l’ajouter à la tête de lecture ou faites-le glisser sur la timeline. Vos sons sont là dans chaque projet.",
"sounds.mineHintPhone": "Touchez un son pour l’écouter, et + pour l’ajouter à la tête de lecture. Vos sons sont là dans chaque projet.",
"sounds.noSoundsYet": "Pas encore de sons à vous. Importez des fichiers audio : ils restent dans votre bibliothèque, prêts pour chaque projet.",
"sounds.notASound": "{0} n’est pas un fichier audio",
+ "sounds.offline": "Impossible de joindre les sons Concat. Vérifiez la connexion et réessayez.",
"sounds.openProjectFirst": "Ouvrez d’abord un projet",
+ "sounds.refresh": "Actualiser",
"sounds.removed": "{0} a été retiré de votre bibliothèque",
"sounds.sounds": "Sons",
+ "sounds.tryAgain": "Réessayer",
"speech.aboutInCharacters": "Environ {0}:{1} en {2} · {3} caractères",
"speech.american": "Américain",
"speech.anyVoiceRecording": "N'importe quelle voix, à partir d'un enregistrement",
diff --git a/src/crates/concat/locales/he.json b/src/crates/concat/locales/he.json
index 618e9a14..3e55d288 100644
--- a/src/crates/concat/locales/he.json
+++ b/src/crates/concat/locales/he.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} נשאר עכשיו בלי מקש",
"sounds.addedMany": "{0} צלילים נוספו לספרייה שלכם",
"sounds.addedOne": "צליל נוסף לספרייה שלכם",
+ "sounds.all": "הכול",
+ "sounds.catAmbience": "אווירה",
+ "sounds.catImpact": "חבטה",
+ "sounds.catMusic": "מוזיקה",
+ "sounds.catRiser": "עלייה",
+ "sounds.catWhoosh": "ווש",
+ "sounds.comingSoon": "ספריית הצלילים תגיע בקרוב",
+ "sounds.concat": "הצלילים של Concat",
+ "sounds.concatHint": "חופשיים לשימוש בכל מקום (CC0). צליל יורד בפעם הראשונה שמנגנים או מוסיפים אותו.",
"sounds.couldNotCopy": "לא ניתן להעתיק את {0} לפרויקט: {1}",
+ "sounds.downloadFailed": "לא ניתן להוריד את {0}: {1}",
"sounds.importSounds": "ייבוא צלילים",
+ "sounds.loadConcat": "טעינת הצלילים של Concat",
+ "sounds.loadConcatHint": "צלילים ומוזיקה בחינם (CC0) לשימוש בכל דבר. הרשימה מגיעה מהאינטרנט כשמבקשים אותה, וכל צליל יורד בפעם הראשונה שמשתמשים בו.",
+ "sounds.loading": "טוען…",
"sounds.mine": "הצלילים שלי",
"sounds.mineHint": "לחצו על צליל כדי לשמוע אותו, על + כדי להוסיף אותו בראש הניגון, או גררו אותו לציר הזמן. הצלילים שלכם כאן בכל פרויקט.",
"sounds.mineHintPhone": "הקישו על צליל כדי לשמוע אותו, ועל + כדי להוסיף אותו בראש הניגון. הצלילים שלכם כאן בכל פרויקט.",
"sounds.noSoundsYet": "עדיין אין צלילים משלכם. ייבאו קובצי שמע והם יישארו בספרייה שלכם, מוכנים לכל פרויקט.",
"sounds.notASound": "{0} אינו קובץ שמע",
+ "sounds.offline": "לא ניתן להגיע לצלילים של Concat. בדקו את החיבור ונסו שוב.",
"sounds.openProjectFirst": "פתחו קודם פרויקט",
+ "sounds.refresh": "רענון",
"sounds.removed": "{0} הוסר מהספרייה שלכם",
"sounds.sounds": "צלילים",
+ "sounds.tryAgain": "נסו שוב",
"speech.aboutInCharacters": "כ-{0}:{1} בקול {2} · {3} תווים",
"speech.american": "אמריקאי",
"speech.anyVoiceRecording": "כל קול, מתוך הקלטה",
diff --git a/src/crates/concat/locales/hi.json b/src/crates/concat/locales/hi.json
index 7809871b..c4b4da81 100644
--- a/src/crates/concat/locales/hi.json
+++ b/src/crates/concat/locales/hi.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} की अब कोई कुंजी नहीं है",
"sounds.addedMany": "आपकी लाइब्रेरी में {0} साउंड जोड़े गए",
"sounds.addedOne": "आपकी लाइब्रेरी में एक साउंड जोड़ा गया",
+ "sounds.all": "सभी",
+ "sounds.catAmbience": "माहौल",
+ "sounds.catImpact": "प्रहार",
+ "sounds.catMusic": "संगीत",
+ "sounds.catRiser": "राइज़र",
+ "sounds.catWhoosh": "हूश",
+ "sounds.comingSoon": "साउंड लाइब्रेरी जल्द आ रही है",
+ "sounds.concat": "Concat साउंड",
+ "sounds.concatHint": "कहीं भी मुफ़्त इस्तेमाल के लिए (CC0)। साउंड पहली बार चलाने या जोड़ने पर डाउनलोड होता है।",
"sounds.couldNotCopy": "{0} को प्रोजेक्ट में कॉपी नहीं किया जा सका: {1}",
+ "sounds.downloadFailed": "{0} डाउनलोड नहीं हो सका: {1}",
"sounds.importSounds": "साउंड इम्पोर्ट करें",
+ "sounds.loadConcat": "Concat साउंड लोड करें",
+ "sounds.loadConcatHint": "किसी भी काम में इस्तेमाल के लिए मुफ़्त साउंड और संगीत (CC0)। माँगने पर सूची इंटरनेट से आती है, और हर साउंड पहली बार इस्तेमाल पर डाउनलोड होता है।",
+ "sounds.loading": "लोड हो रहा है…",
"sounds.mine": "मेरे साउंड",
"sounds.mineHint": "सुनने के लिए किसी साउंड पर क्लिक करें, प्लेहेड पर जोड़ने के लिए + दबाएँ, या उसे टाइमलाइन पर खींचें। आपके साउंड हर प्रोजेक्ट में यहाँ मिलेंगे।",
"sounds.mineHintPhone": "सुनने के लिए किसी साउंड पर टैप करें, और प्लेहेड पर जोड़ने के लिए +। आपके साउंड हर प्रोजेक्ट में यहाँ मिलेंगे।",
"sounds.noSoundsYet": "अभी आपका कोई अपना साउंड नहीं है। साउंड फ़ाइलें इम्पोर्ट करें, वे आपकी लाइब्रेरी में रहेंगी, हर प्रोजेक्ट के लिए तैयार।",
"sounds.notASound": "{0} कोई साउंड फ़ाइल नहीं है",
+ "sounds.offline": "Concat साउंड तक नहीं पहुँचा जा सका। कनेक्शन जाँचें और फिर कोशिश करें।",
"sounds.openProjectFirst": "पहले कोई प्रोजेक्ट खोलें",
+ "sounds.refresh": "रीफ़्रेश",
"sounds.removed": "आपकी लाइब्रेरी से {0} हटाया गया",
"sounds.sounds": "साउंड",
+ "sounds.tryAgain": "फिर कोशिश करें",
"speech.aboutInCharacters": "लगभग {0}:{1}, {2} की आवाज़ में · {3} अक्षर",
"speech.american": "अमेरिकी",
"speech.anyVoiceRecording": "कोई भी आवाज़, रिकॉर्डिंग से",
diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.json
index d8f30ab6..aa5165c5 100644
--- a/src/crates/concat/locales/hr.json
+++ b/src/crates/concat/locales/hr.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} više nema tipku",
"sounds.addedMany": "Dodano je {0} zvukova u vašu knjižnicu",
"sounds.addedOne": "Zvuk je dodan u vašu knjižnicu",
+ "sounds.all": "Sve",
+ "sounds.catAmbience": "Ambijent",
+ "sounds.catImpact": "Udarac",
+ "sounds.catMusic": "Glazba",
+ "sounds.catRiser": "Uzlaz",
+ "sounds.catWhoosh": "Fijuk",
+ "sounds.comingSoon": "Knjižnica zvukova uskoro stiže",
+ "sounds.concat": "Concat zvukovi",
+ "sounds.concatHint": "Slobodni za korištenje bilo gdje (CC0). Zvuk se preuzima kad ga prvi put reproducirate ili dodate.",
"sounds.couldNotCopy": "{0} nije moguće kopirati u projekt: {1}",
+ "sounds.downloadFailed": "{0} nije moguće preuzeti: {1}",
"sounds.importSounds": "Uvezi zvukove",
+ "sounds.loadConcat": "Učitaj Concat zvukove",
+ "sounds.loadConcatHint": "Besplatni zvukovi i glazba (CC0) za bilo što. Popis stiže s interneta kad ga zatražite, a svaki se zvuk preuzima kad ga prvi put upotrijebite.",
+ "sounds.loading": "Učitavanje…",
"sounds.mine": "Moji zvukovi",
"sounds.mineHint": "Kliknite zvuk da ga čujete, pritisnite + da ga dodate na glavu za reprodukciju ili ga povucite na vremensku crtu. Vaši su zvukovi ovdje u svakom projektu.",
"sounds.mineHintPhone": "Dodirnite zvuk da ga čujete, a + da ga dodate na glavu za reprodukciju. Vaši su zvukovi ovdje u svakom projektu.",
"sounds.noSoundsYet": "Još nemate vlastitih zvukova. Uvezite zvučne datoteke i ostat će u vašoj knjižnici, spremne za svaki projekt.",
"sounds.notASound": "{0} nije zvučna datoteka",
+ "sounds.offline": "Concat zvukovi nisu dostupni. Provjerite vezu i pokušajte ponovno.",
"sounds.openProjectFirst": "Najprije otvorite projekt",
+ "sounds.refresh": "Osvježi",
"sounds.removed": "{0} uklonjen je iz vaše knjižnice",
"sounds.sounds": "Zvukovi",
+ "sounds.tryAgain": "Pokušaj ponovno",
"speech.aboutInCharacters": "Oko {0}:{1} u {2} · {3} znakova",
"speech.american": "američki",
"speech.anyVoiceRecording": "Bilo koji glas, iz snimke",
diff --git a/src/crates/concat/locales/id.json b/src/crates/concat/locales/id.json
index db51076c..6c4dfe23 100644
--- a/src/crates/concat/locales/id.json
+++ b/src/crates/concat/locales/id.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} kini tidak punya tombol",
"sounds.addedMany": "{0} suara ditambahkan ke pustakamu",
"sounds.addedOne": "Satu suara ditambahkan ke pustakamu",
+ "sounds.all": "Semua",
+ "sounds.catAmbience": "Suasana",
+ "sounds.catImpact": "Benturan",
+ "sounds.catMusic": "Musik",
+ "sounds.catRiser": "Naikan",
+ "sounds.catWhoosh": "Desing",
+ "sounds.comingSoon": "Pustaka suara segera hadir",
+ "sounds.concat": "Suara Concat",
+ "sounds.concatHint": "Bebas dipakai di mana saja (CC0). Suara diunduh saat pertama kali diputar atau ditambahkan.",
"sounds.couldNotCopy": "Tidak dapat menyalin {0} ke proyek: {1}",
+ "sounds.downloadFailed": "Tidak dapat mengunduh {0}: {1}",
"sounds.importSounds": "Impor suara",
+ "sounds.loadConcat": "Muat suara Concat",
+ "sounds.loadConcatHint": "Suara dan musik gratis (CC0) untuk dipakai di mana saja. Daftarnya diambil dari internet saat kamu memintanya, dan tiap suara diunduh saat pertama kali dipakai.",
+ "sounds.loading": "Memuat…",
"sounds.mine": "Suaraku",
"sounds.mineHint": "Klik suara untuk mendengarnya, tekan + untuk menambahkannya di playhead, atau seret ke timeline. Suaramu ada di sini di setiap proyek.",
"sounds.mineHintPhone": "Ketuk suara untuk mendengarnya, dan + untuk menambahkannya di playhead. Suaramu ada di sini di setiap proyek.",
"sounds.noSoundsYet": "Belum ada suara milikmu. Impor file suara dan semuanya tetap di pustakamu, siap untuk setiap proyek.",
"sounds.notASound": "{0} bukan file suara",
+ "sounds.offline": "Suara Concat tidak dapat dijangkau. Periksa koneksi lalu coba lagi.",
"sounds.openProjectFirst": "Buka proyek terlebih dahulu",
+ "sounds.refresh": "Segarkan",
"sounds.removed": "{0} dihapus dari pustakamu",
"sounds.sounds": "Suara",
+ "sounds.tryAgain": "Coba lagi",
"speech.aboutInCharacters": "Sekitar {0}:{1} dengan {2} · {3} karakter",
"speech.american": "Amerika",
"speech.anyVoiceRecording": "Suara apa pun, dari rekaman",
diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.json
index 69f189fe..bdb08dc6 100644
--- a/src/crates/concat/locales/it.json
+++ b/src/crates/concat/locales/it.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} non ha più un tasto",
"sounds.addedMany": "Aggiunti {0} suoni alla tua libreria",
"sounds.addedOne": "Aggiunto un suono alla tua libreria",
+ "sounds.all": "Tutti",
+ "sounds.catAmbience": "Ambiente",
+ "sounds.catImpact": "Impatto",
+ "sounds.catMusic": "Musica",
+ "sounds.catRiser": "Salita",
+ "sounds.catWhoosh": "Whoosh",
+ "sounds.comingSoon": "La libreria di suoni arriverà presto",
+ "sounds.concat": "Suoni di Concat",
+ "sounds.concatHint": "Liberi da usare ovunque (CC0). Un suono si scarica la prima volta che lo ascolti o lo aggiungi.",
"sounds.couldNotCopy": "Impossibile copiare {0} nel progetto: {1}",
+ "sounds.downloadFailed": "Impossibile scaricare {0}: {1}",
"sounds.importSounds": "Importa suoni",
+ "sounds.loadConcat": "Carica i suoni di Concat",
+ "sounds.loadConcatHint": "Suoni e musica gratis (CC0) da usare ovunque. L’elenco arriva da internet quando lo chiedi, e ogni suono si scarica la prima volta che lo usi.",
+ "sounds.loading": "Caricamento…",
"sounds.mine": "I miei suoni",
"sounds.mineHint": "Fai clic su un suono per ascoltarlo, premi + per aggiungerlo alla testina o trascinalo sulla timeline. I tuoi suoni sono qui in ogni progetto.",
"sounds.mineHintPhone": "Tocca un suono per ascoltarlo e + per aggiungerlo alla testina. I tuoi suoni sono qui in ogni progetto.",
"sounds.noSoundsYet": "Nessun suono tuo per ora. Importa file audio: resteranno nella tua libreria, pronti per ogni progetto.",
"sounds.notASound": "{0} non è un file audio",
+ "sounds.offline": "Impossibile raggiungere i suoni di Concat. Controlla la connessione e riprova.",
"sounds.openProjectFirst": "Apri prima un progetto",
+ "sounds.refresh": "Aggiorna",
"sounds.removed": "{0} rimosso dalla tua libreria",
"sounds.sounds": "Suoni",
+ "sounds.tryAgain": "Riprova",
"speech.aboutInCharacters": "Circa {0}:{1} in {2} · {3} caratteri",
"speech.american": "Americano",
"speech.anyVoiceRecording": "Qualsiasi voce, da una registrazione",
diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.json
index a34430d6..40590451 100644
--- a/src/crates/concat/locales/ja.json
+++ b/src/crates/concat/locales/ja.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} は現在割り当てされていません",
"sounds.addedMany": "{0} 個のサウンドをライブラリに追加しました",
"sounds.addedOne": "サウンドをライブラリに追加しました",
+ "sounds.all": "すべて",
+ "sounds.catAmbience": "環境音",
+ "sounds.catImpact": "インパクト",
+ "sounds.catMusic": "音楽",
+ "sounds.catRiser": "ライザー",
+ "sounds.catWhoosh": "ヒュッ",
+ "sounds.comingSoon": "サウンドライブラリは近日公開",
+ "sounds.concat": "Concat サウンド",
+ "sounds.concatHint": "どこでも自由に使えます(CC0)。サウンドは初めて再生または追加したときにダウンロードされます。",
"sounds.couldNotCopy": "{0} をプロジェクトにコピーできませんでした: {1}",
+ "sounds.downloadFailed": "{0} をダウンロードできませんでした: {1}",
"sounds.importSounds": "サウンドを読み込む",
+ "sounds.loadConcat": "Concat サウンドを読み込む",
+ "sounds.loadConcatHint": "どんな用途にも使える無料のサウンドと音楽(CC0)。一覧は求めたときにインターネットから取得し、各サウンドは初めて使うときにダウンロードされます。",
+ "sounds.loading": "読み込み中…",
"sounds.mine": "マイサウンド",
"sounds.mineHint": "サウンドをクリックで試聴、+で再生ヘッドに追加、またはタイムラインへドラッグ。サウンドはどのプロジェクトでもここにあります。",
"sounds.mineHintPhone": "サウンドをタップで試聴、+で再生ヘッドに追加。サウンドはどのプロジェクトでもここにあります。",
"sounds.noSoundsYet": "自分のサウンドはまだありません。音声ファイルを読み込むとライブラリに保存され、どのプロジェクトでも使えます。",
"sounds.notASound": "{0} は音声ファイルではありません",
+ "sounds.offline": "Concat サウンドに接続できませんでした。接続を確認してもう一度お試しください。",
"sounds.openProjectFirst": "先にプロジェクトを開いてください",
+ "sounds.refresh": "更新",
"sounds.removed": "{0} をライブラリから削除しました",
"sounds.sounds": "サウンド",
+ "sounds.tryAgain": "再試行",
"speech.aboutInCharacters": "約 {0}:{1} ({2}) · {3} 文字",
"speech.american": "アメリカ",
"speech.anyVoiceRecording": "録音から、どんな声でも",
diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.json
index 136752ba..92962b1f 100644
--- a/src/crates/concat/locales/ko.json
+++ b/src/crates/concat/locales/ko.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0}에 키가 없습니다",
"sounds.addedMany": "라이브러리에 사운드 {0}개를 추가했습니다",
"sounds.addedOne": "라이브러리에 사운드를 추가했습니다",
+ "sounds.all": "전체",
+ "sounds.catAmbience": "앰비언스",
+ "sounds.catImpact": "임팩트",
+ "sounds.catMusic": "음악",
+ "sounds.catRiser": "라이저",
+ "sounds.catWhoosh": "휙",
+ "sounds.comingSoon": "사운드 라이브러리가 곧 나옵니다",
+ "sounds.concat": "Concat 사운드",
+ "sounds.concatHint": "어디서나 자유롭게 쓸 수 있습니다(CC0). 사운드는 처음 재생하거나 추가할 때 내려받습니다.",
"sounds.couldNotCopy": "{0}을(를) 프로젝트로 복사할 수 없습니다: {1}",
+ "sounds.downloadFailed": "{0}을(를) 내려받을 수 없습니다: {1}",
"sounds.importSounds": "사운드 가져오기",
+ "sounds.loadConcat": "Concat 사운드 불러오기",
+ "sounds.loadConcatHint": "어디에나 쓸 수 있는 무료 사운드와 음악(CC0)입니다. 목록은 요청할 때 인터넷에서 가져오고, 각 사운드는 처음 쓸 때 내려받습니다.",
+ "sounds.loading": "불러오는 중…",
"sounds.mine": "내 사운드",
"sounds.mineHint": "사운드를 클릭하면 들을 수 있고, +를 누르면 재생 헤드에 추가되며, 타임라인으로 드래그할 수도 있습니다. 내 사운드는 모든 프로젝트에서 여기에 있습니다.",
"sounds.mineHintPhone": "사운드를 탭하면 들을 수 있고, +를 누르면 재생 헤드에 추가됩니다. 내 사운드는 모든 프로젝트에서 여기에 있습니다.",
"sounds.noSoundsYet": "아직 내 사운드가 없습니다. 사운드 파일을 가져오면 라이브러리에 남아 모든 프로젝트에서 쓸 수 있습니다.",
"sounds.notASound": "{0}은(는) 사운드 파일이 아닙니다",
+ "sounds.offline": "Concat 사운드에 연결할 수 없습니다. 연결을 확인하고 다시 시도하세요.",
"sounds.openProjectFirst": "먼저 프로젝트를 여세요",
+ "sounds.refresh": "새로 고침",
"sounds.removed": "라이브러리에서 {0}을(를) 제거했습니다",
"sounds.sounds": "사운드",
+ "sounds.tryAgain": "다시 시도",
"speech.aboutInCharacters": "약 {0}:{1} ({2}) · {3}자",
"speech.american": "미국식",
"speech.anyVoiceRecording": "녹음에서 딴 어떤 목소리든",
diff --git a/src/crates/concat/locales/nl.json b/src/crates/concat/locales/nl.json
index 82969dc0..c0fededb 100644
--- a/src/crates/concat/locales/nl.json
+++ b/src/crates/concat/locales/nl.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} heeft nu geen toets",
"sounds.addedMany": "{0} geluiden aan je bibliotheek toegevoegd",
"sounds.addedOne": "Geluid aan je bibliotheek toegevoegd",
+ "sounds.all": "Alle",
+ "sounds.catAmbience": "Sfeer",
+ "sounds.catImpact": "Inslag",
+ "sounds.catMusic": "Muziek",
+ "sounds.catRiser": "Opbouw",
+ "sounds.catWhoosh": "Zoef",
+ "sounds.comingSoon": "De geluidsbibliotheek komt binnenkort",
+ "sounds.concat": "Concat-geluiden",
+ "sounds.concatHint": "Overal vrij te gebruiken (CC0). Een geluid wordt gedownload zodra je het voor het eerst afspeelt of toevoegt.",
"sounds.couldNotCopy": "Kan {0} niet naar het project kopiëren: {1}",
+ "sounds.downloadFailed": "Kan {0} niet downloaden: {1}",
"sounds.importSounds": "Geluiden importeren",
+ "sounds.loadConcat": "Concat-geluiden laden",
+ "sounds.loadConcatHint": "Gratis geluiden en muziek (CC0) voor alles. De lijst komt van internet wanneer je erom vraagt, en elk geluid wordt gedownload zodra je het voor het eerst gebruikt.",
+ "sounds.loading": "Laden…",
"sounds.mine": "Mijn geluiden",
"sounds.mineHint": "Klik op een geluid om het te horen, druk op + om het bij de afspeelkop toe te voegen, of sleep het naar de tijdlijn. Je geluiden staan hier in elk project.",
"sounds.mineHintPhone": "Tik op een geluid om het te horen, en op + om het bij de afspeelkop toe te voegen. Je geluiden staan hier in elk project.",
"sounds.noSoundsYet": "Nog geen eigen geluiden. Importeer geluidsbestanden en ze blijven in je bibliotheek, klaar voor elk project.",
"sounds.notASound": "{0} is geen geluidsbestand",
+ "sounds.offline": "De Concat-geluiden waren niet bereikbaar. Controleer de verbinding en probeer het opnieuw.",
"sounds.openProjectFirst": "Open eerst een project",
+ "sounds.refresh": "Vernieuwen",
"sounds.removed": "{0} uit je bibliotheek verwijderd",
"sounds.sounds": "Geluiden",
+ "sounds.tryAgain": "Opnieuw proberen",
"speech.aboutInCharacters": "Ongeveer {0}:{1} met {2} · {3} tekens",
"speech.american": "Amerikaans",
"speech.anyVoiceRecording": "Elke stem, uit een opname",
diff --git a/src/crates/concat/locales/pl.json b/src/crates/concat/locales/pl.json
index fb0e5c19..5d4f8839 100644
--- a/src/crates/concat/locales/pl.json
+++ b/src/crates/concat/locales/pl.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} nie ma teraz klawisza",
"sounds.addedMany": "Dodano dźwięki do Twojej biblioteki: {0}",
"sounds.addedOne": "Dodano dźwięk do Twojej biblioteki",
+ "sounds.all": "Wszystkie",
+ "sounds.catAmbience": "Tło",
+ "sounds.catImpact": "Uderzenie",
+ "sounds.catMusic": "Muzyka",
+ "sounds.catRiser": "Narastanie",
+ "sounds.catWhoosh": "Świst",
+ "sounds.comingSoon": "Biblioteka dźwięków już wkrótce",
+ "sounds.concat": "Dźwięki Concat",
+ "sounds.concatHint": "Do swobodnego użytku wszędzie (CC0). Dźwięk pobiera się przy pierwszym odtworzeniu lub dodaniu.",
"sounds.couldNotCopy": "Nie udało się skopiować {0} do projektu: {1}",
+ "sounds.downloadFailed": "Nie udało się pobrać {0}: {1}",
"sounds.importSounds": "Importuj dźwięki",
+ "sounds.loadConcat": "Wczytaj dźwięki Concat",
+ "sounds.loadConcatHint": "Darmowe dźwięki i muzyka (CC0) do wszystkiego. Lista pobiera się z internetu, gdy o nią poprosisz, a każdy dźwięk przy pierwszym użyciu.",
+ "sounds.loading": "Wczytywanie…",
"sounds.mine": "Moje dźwięki",
"sounds.mineHint": "Kliknij dźwięk, aby go odsłuchać, naciśnij +, aby dodać go przy głowicy, albo przeciągnij go na oś czasu. Twoje dźwięki są tu w każdym projekcie.",
"sounds.mineHintPhone": "Stuknij dźwięk, aby go odsłuchać, a +, aby dodać go przy głowicy. Twoje dźwięki są tu w każdym projekcie.",
"sounds.noSoundsYet": "Nie masz jeszcze własnych dźwięków. Zaimportuj pliki dźwiękowe, a zostaną w Twojej bibliotece, gotowe do każdego projektu.",
"sounds.notASound": "{0} nie jest plikiem dźwiękowym",
+ "sounds.offline": "Nie udało się połączyć z dźwiękami Concat. Sprawdź połączenie i spróbuj ponownie.",
"sounds.openProjectFirst": "Najpierw otwórz projekt",
+ "sounds.refresh": "Odśwież",
"sounds.removed": "Usunięto {0} z Twojej biblioteki",
"sounds.sounds": "Dźwięki",
+ "sounds.tryAgain": "Spróbuj ponownie",
"speech.aboutInCharacters": "Około {0}:{1}, głos: {2} · znaki: {3}",
"speech.american": "amerykański",
"speech.anyVoiceRecording": "Dowolny głos z nagrania",
diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.json
index 2d965e87..cb3b813c 100644
--- a/src/crates/concat/locales/pt-BR.json
+++ b/src/crates/concat/locales/pt-BR.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} não tem tecla agora",
"sounds.addedMany": "{0} sons foram adicionados à sua biblioteca",
"sounds.addedOne": "Um som foi adicionado à sua biblioteca",
+ "sounds.all": "Todos",
+ "sounds.catAmbience": "Ambiente",
+ "sounds.catImpact": "Impacto",
+ "sounds.catMusic": "Música",
+ "sounds.catRiser": "Subida",
+ "sounds.catWhoosh": "Whoosh",
+ "sounds.comingSoon": "A biblioteca de sons chega em breve",
+ "sounds.concat": "Sons do Concat",
+ "sounds.concatHint": "Livres para usar em qualquer lugar (CC0). O som é baixado na primeira vez que você o toca ou adiciona.",
"sounds.couldNotCopy": "Não foi possível copiar {0} para o projeto: {1}",
+ "sounds.downloadFailed": "Não foi possível baixar {0}: {1}",
"sounds.importSounds": "Importar sons",
+ "sounds.loadConcat": "Carregar sons do Concat",
+ "sounds.loadConcatHint": "Sons e músicas gratuitos (CC0) para usar em qualquer coisa. A lista vem da internet quando você pede, e cada som é baixado na primeira vez que você o usa.",
+ "sounds.loading": "Carregando…",
"sounds.mine": "Meus sons",
"sounds.mineHint": "Clique em um som para ouvi-lo, toque em + para adicioná-lo no cursor de reprodução ou arraste-o para a linha do tempo. Seus sons ficam aqui em todos os projetos.",
"sounds.mineHintPhone": "Toque em um som para ouvi-lo e em + para adicioná-lo no cursor de reprodução. Seus sons ficam aqui em todos os projetos.",
"sounds.noSoundsYet": "Ainda não há sons seus. Importe arquivos de som e eles ficam na sua biblioteca, prontos para todos os projetos.",
"sounds.notASound": "{0} não é um arquivo de som",
+ "sounds.offline": "Não foi possível acessar os sons do Concat. Verifique a conexão e tente de novo.",
"sounds.openProjectFirst": "Abra um projeto primeiro",
+ "sounds.refresh": "Atualizar",
"sounds.removed": "{0} foi removido da sua biblioteca",
"sounds.sounds": "Sons",
+ "sounds.tryAgain": "Tentar de novo",
"speech.aboutInCharacters": "Cerca de {0}:{1} em {2} · {3} caracteres",
"speech.american": "Americano",
"speech.anyVoiceRecording": "Qualquer voz, a partir de uma gravação",
diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.json
index e5521cb2..fb4af32f 100644
--- a/src/crates/concat/locales/ru.json
+++ b/src/crates/concat/locales/ru.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "Теперь у «{0}» нет клавиши",
"sounds.addedMany": "Звуков добавлено в вашу библиотеку: {0}",
"sounds.addedOne": "Звук добавлен в вашу библиотеку",
+ "sounds.all": "Все",
+ "sounds.catAmbience": "Атмосфера",
+ "sounds.catImpact": "Удар",
+ "sounds.catMusic": "Музыка",
+ "sounds.catRiser": "Нарастание",
+ "sounds.catWhoosh": "Свист",
+ "sounds.comingSoon": "Библиотека звуков скоро появится",
+ "sounds.concat": "Звуки Concat",
+ "sounds.concatHint": "Свободны для любого использования (CC0). Звук скачивается при первом прослушивании или добавлении.",
"sounds.couldNotCopy": "Не удалось скопировать {0} в проект: {1}",
+ "sounds.downloadFailed": "Не удалось скачать {0}: {1}",
"sounds.importSounds": "Импорт звуков",
+ "sounds.loadConcat": "Загрузить звуки Concat",
+ "sounds.loadConcatHint": "Бесплатные звуки и музыка (CC0) для чего угодно. Список загружается из интернета по вашему запросу, а каждый звук скачивается при первом использовании.",
+ "sounds.loading": "Загрузка…",
"sounds.mine": "Мои звуки",
"sounds.mineHint": "Нажмите на звук, чтобы прослушать его, + — чтобы добавить его к указателю воспроизведения, или перетащите на таймлайн. Ваши звуки доступны здесь в любом проекте.",
"sounds.mineHintPhone": "Коснитесь звука, чтобы прослушать его, и +, чтобы добавить его к указателю воспроизведения. Ваши звуки доступны здесь в любом проекте.",
"sounds.noSoundsYet": "Своих звуков пока нет. Импортируйте звуковые файлы, и они останутся в вашей библиотеке, готовые для любого проекта.",
"sounds.notASound": "{0} — не звуковой файл",
+ "sounds.offline": "Не удалось получить звуки Concat. Проверьте подключение и попробуйте снова.",
"sounds.openProjectFirst": "Сначала откройте проект",
+ "sounds.refresh": "Обновить",
"sounds.removed": "{0} удалён из вашей библиотеки",
"sounds.sounds": "Звуки",
+ "sounds.tryAgain": "Повторить",
"speech.aboutInCharacters": "Около {0}:{1} голосом {2} · {3} символов",
"speech.american": "Американский",
"speech.anyVoiceRecording": "Любой голос из записи",
diff --git a/src/crates/concat/locales/th.json b/src/crates/concat/locales/th.json
index 1ca92ad2..739ca54c 100644
--- a/src/crates/concat/locales/th.json
+++ b/src/crates/concat/locales/th.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "ตอนนี้ {0} ไม่มีแป้นแล้ว",
"sounds.addedMany": "เพิ่ม {0} เสียงลงในคลังของคุณแล้ว",
"sounds.addedOne": "เพิ่มเสียงลงในคลังของคุณแล้ว",
+ "sounds.all": "ทั้งหมด",
+ "sounds.catAmbience": "บรรยากาศ",
+ "sounds.catImpact": "กระแทก",
+ "sounds.catMusic": "เพลง",
+ "sounds.catRiser": "ไต่ระดับ",
+ "sounds.catWhoosh": "วูบ",
+ "sounds.comingSoon": "คลังเสียงกำลังจะมาเร็วๆ นี้",
+ "sounds.concat": "เสียงของ Concat",
+ "sounds.concatHint": "ใช้ได้อย่างเสรีทุกที่ (CC0) เสียงจะดาวน์โหลดเมื่อเล่นหรือเพิ่มครั้งแรก",
"sounds.couldNotCopy": "คัดลอก {0} ลงในโปรเจกต์ไม่ได้: {1}",
+ "sounds.downloadFailed": "ดาวน์โหลด {0} ไม่ได้: {1}",
"sounds.importSounds": "นำเข้าเสียง",
+ "sounds.loadConcat": "โหลดเสียงของ Concat",
+ "sounds.loadConcatHint": "เสียงและเพลงฟรี (CC0) ใช้กับอะไรก็ได้ รายการจะโหลดจากอินเทอร์เน็ตเมื่อคุณขอ และแต่ละเสียงจะดาวน์โหลดเมื่อใช้ครั้งแรก",
+ "sounds.loading": "กำลังโหลด…",
"sounds.mine": "เสียงของฉัน",
"sounds.mineHint": "คลิกเสียงเพื่อฟัง กด + เพื่อเพิ่มที่หัวเล่น หรือลากไปวางบนไทม์ไลน์ เสียงของคุณอยู่ที่นี่ในทุกโปรเจกต์",
"sounds.mineHintPhone": "แตะเสียงเพื่อฟัง และแตะ + เพื่อเพิ่มที่หัวเล่น เสียงของคุณอยู่ที่นี่ในทุกโปรเจกต์",
"sounds.noSoundsYet": "ยังไม่มีเสียงของคุณเอง นำเข้าไฟล์เสียงแล้วเสียงจะอยู่ในคลังของคุณ พร้อมใช้ในทุกโปรเจกต์",
"sounds.notASound": "{0} ไม่ใช่ไฟล์เสียง",
+ "sounds.offline": "เข้าถึงเสียงของ Concat ไม่ได้ ตรวจสอบการเชื่อมต่อแล้วลองอีกครั้ง",
"sounds.openProjectFirst": "เปิดโปรเจกต์ก่อน",
+ "sounds.refresh": "รีเฟรช",
"sounds.removed": "นำ {0} ออกจากคลังของคุณแล้ว",
"sounds.sounds": "เสียง",
+ "sounds.tryAgain": "ลองอีกครั้ง",
"speech.aboutInCharacters": "ประมาณ {0}:{1} ด้วยเสียง {2} · {3} ตัวอักษร",
"speech.american": "อเมริกัน",
"speech.anyVoiceRecording": "เสียงใดก็ได้ จากไฟล์บันทึก",
diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.json
index 7fbe8e81..3acbd3ff 100644
--- a/src/crates/concat/locales/tr.json
+++ b/src/crates/concat/locales/tr.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} artık tuşsuz",
"sounds.addedMany": "Kitaplığınıza {0} ses eklendi",
"sounds.addedOne": "Kitaplığınıza bir ses eklendi",
+ "sounds.all": "Tümü",
+ "sounds.catAmbience": "Ortam",
+ "sounds.catImpact": "Darbe",
+ "sounds.catMusic": "Müzik",
+ "sounds.catRiser": "Yükseliş",
+ "sounds.catWhoosh": "Vınlama",
+ "sounds.comingSoon": "Ses kitaplığı yakında geliyor",
+ "sounds.concat": "Concat sesleri",
+ "sounds.concatHint": "Her yerde serbestçe kullanılabilir (CC0). Bir ses ilk çaldığınızda ya da eklediğinizde indirilir.",
"sounds.couldNotCopy": "{0} projeye kopyalanamadı: {1}",
+ "sounds.downloadFailed": "{0} indirilemedi: {1}",
"sounds.importSounds": "Ses içe aktar",
+ "sounds.loadConcat": "Concat seslerini yükle",
+ "sounds.loadConcatHint": "Her işte kullanabileceğiniz ücretsiz sesler ve müzik (CC0). Liste istediğinizde internetten gelir; her ses ilk kullandığınızda indirilir.",
+ "sounds.loading": "Yükleniyor…",
"sounds.mine": "Seslerim",
"sounds.mineHint": "Dinlemek için bir sese tıklayın, oynatma kafasına eklemek için + düğmesine basın ya da zaman çizelgesine sürükleyin. Sesleriniz her projede burada.",
"sounds.mineHintPhone": "Dinlemek için bir sese, oynatma kafasına eklemek için + düğmesine dokunun. Sesleriniz her projede burada.",
"sounds.noSoundsYet": "Henüz kendi sesiniz yok. Ses dosyalarını içe aktarın; kitaplığınızda kalır ve her projede kullanıma hazır olur.",
"sounds.notASound": "{0} bir ses dosyası değil",
+ "sounds.offline": "Concat seslerine ulaşılamadı. Bağlantıyı denetleyip yeniden deneyin.",
"sounds.openProjectFirst": "Önce bir proje açın",
+ "sounds.refresh": "Yenile",
"sounds.removed": "{0} kitaplığınızdan kaldırıldı",
"sounds.sounds": "Sesler",
+ "sounds.tryAgain": "Yeniden dene",
"speech.aboutInCharacters": "Yaklaşık {0}:{1}, {2} · {3} karakter",
"speech.american": "Amerikan",
"speech.anyVoiceRecording": "Bir kayıttan herhangi bir ses",
diff --git a/src/crates/concat/locales/uk.json b/src/crates/concat/locales/uk.json
index b7ebbb5b..c41a3b99 100644
--- a/src/crates/concat/locales/uk.json
+++ b/src/crates/concat/locales/uk.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "Тепер «{0}» не має клавіші",
"sounds.addedMany": "Звуків додано до вашої бібліотеки: {0}",
"sounds.addedOne": "Звук додано до вашої бібліотеки",
+ "sounds.all": "Усі",
+ "sounds.catAmbience": "Атмосфера",
+ "sounds.catImpact": "Удар",
+ "sounds.catMusic": "Музика",
+ "sounds.catRiser": "Наростання",
+ "sounds.catWhoosh": "Свист",
+ "sounds.comingSoon": "Бібліотека звуків незабаром",
+ "sounds.concat": "Звуки Concat",
+ "sounds.concatHint": "Вільні для будь-якого використання (CC0). Звук завантажується під час першого відтворення або додавання.",
"sounds.couldNotCopy": "Не вдалося скопіювати {0} до проєкту: {1}",
+ "sounds.downloadFailed": "Не вдалося завантажити {0}: {1}",
"sounds.importSounds": "Імпорт звуків",
+ "sounds.loadConcat": "Завантажити звуки Concat",
+ "sounds.loadConcatHint": "Безкоштовні звуки й музика (CC0) для будь-чого. Список завантажується з інтернету, коли ви його попросите, а кожен звук — під час першого використання.",
+ "sounds.loading": "Завантаження…",
"sounds.mine": "Мої звуки",
"sounds.mineHint": "Натисніть на звук, щоб прослухати його, + — щоб додати його до курсора відтворення, або перетягніть на таймлайн. Ваші звуки є тут у кожному проєкті.",
"sounds.mineHintPhone": "Торкніться звуку, щоб прослухати його, і +, щоб додати його до курсора відтворення. Ваші звуки є тут у кожному проєкті.",
"sounds.noSoundsYet": "Власних звуків поки немає. Імпортуйте звукові файли, і вони залишаться у вашій бібліотеці, готові для кожного проєкту.",
"sounds.notASound": "{0} — не звуковий файл",
+ "sounds.offline": "Не вдалося отримати звуки Concat. Перевірте з’єднання та спробуйте ще раз.",
"sounds.openProjectFirst": "Спершу відкрийте проєкт",
+ "sounds.refresh": "Оновити",
"sounds.removed": "{0} вилучено з вашої бібліотеки",
"sounds.sounds": "Звуки",
+ "sounds.tryAgain": "Спробувати ще",
"speech.aboutInCharacters": "Близько {0}:{1}, голос {2} · символів: {3}",
"speech.american": "американський",
"speech.anyVoiceRecording": "Будь-який голос із запису",
diff --git a/src/crates/concat/locales/ur.json b/src/crates/concat/locales/ur.json
index 3de0970b..cc585e83 100644
--- a/src/crates/concat/locales/ur.json
+++ b/src/crates/concat/locales/ur.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} کی اب کوئی کلید نہیں",
"sounds.addedMany": "آپ کی لائبریری میں {0} آوازیں شامل ہو گئیں",
"sounds.addedOne": "آپ کی لائبریری میں ایک آواز شامل ہو گئی",
+ "sounds.all": "سب",
+ "sounds.catAmbience": "ماحول",
+ "sounds.catImpact": "ٹکر",
+ "sounds.catMusic": "موسیقی",
+ "sounds.catRiser": "ابھار",
+ "sounds.catWhoosh": "سنسناہٹ",
+ "sounds.comingSoon": "آوازوں کی لائبریری جلد آ رہی ہے",
+ "sounds.concat": "Concat کی آوازیں",
+ "sounds.concatHint": "ہر جگہ مفت استعمال کے لیے (CC0)۔ آواز پہلی بار چلانے یا شامل کرنے پر ڈاؤن لوڈ ہوتی ہے۔",
"sounds.couldNotCopy": "{0} کو پروجیکٹ میں کاپی نہیں کیا جا سکا: {1}",
+ "sounds.downloadFailed": "{0} ڈاؤن لوڈ نہیں ہو سکی: {1}",
"sounds.importSounds": "آوازیں درآمد کریں",
+ "sounds.loadConcat": "Concat کی آوازیں لوڈ کریں",
+ "sounds.loadConcatHint": "ہر کام میں استعمال کے لیے مفت آوازیں اور موسیقی (CC0)۔ مانگنے پر فہرست انٹرنیٹ سے آتی ہے، اور ہر آواز پہلی بار استعمال پر ڈاؤن لوڈ ہوتی ہے۔",
+ "sounds.loading": "لوڈ ہو رہا ہے…",
"sounds.mine": "میری آوازیں",
"sounds.mineHint": "سننے کے لیے کسی آواز پر کلک کریں، پلے ہیڈ پر شامل کرنے کے لیے + دبائیں، یا اسے ٹائم لائن پر گھسیٹیں۔ آپ کی آوازیں ہر پروجیکٹ میں یہیں ہیں۔",
"sounds.mineHintPhone": "سننے کے لیے کسی آواز کو ٹیپ کریں، اور پلے ہیڈ پر شامل کرنے کے لیے +۔ آپ کی آوازیں ہر پروجیکٹ میں یہیں ہیں۔",
"sounds.noSoundsYet": "ابھی آپ کی اپنی کوئی آواز نہیں۔ آواز کی فائلیں درآمد کریں، وہ آپ کی لائبریری میں رہیں گی، ہر پروجیکٹ کے لیے تیار۔",
"sounds.notASound": "{0} آواز کی فائل نہیں ہے",
+ "sounds.offline": "Concat کی آوازوں تک رسائی نہیں ہو سکی۔ کنکشن دیکھ کر دوبارہ کوشش کریں۔",
"sounds.openProjectFirst": "پہلے کوئی پروجیکٹ کھولیں",
+ "sounds.refresh": "تازہ کریں",
"sounds.removed": "{0} آپ کی لائبریری سے ہٹا دی گئی",
"sounds.sounds": "آوازیں",
+ "sounds.tryAgain": "دوبارہ کوشش کریں",
"speech.aboutInCharacters": "تقریباً {0}:{1}، {2} کی آواز میں · {3} حروف",
"speech.american": "امریکی",
"speech.anyVoiceRecording": "کوئی بھی آواز، ریکارڈنگ سے",
diff --git a/src/crates/concat/locales/vi.json b/src/crates/concat/locales/vi.json
index 5223c8bb..74b19d96 100644
--- a/src/crates/concat/locales/vi.json
+++ b/src/crates/concat/locales/vi.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0} hiện không có phím",
"sounds.addedMany": "Đã thêm {0} âm thanh vào thư viện của bạn",
"sounds.addedOne": "Đã thêm một âm thanh vào thư viện của bạn",
+ "sounds.all": "Tất cả",
+ "sounds.catAmbience": "Không khí",
+ "sounds.catImpact": "Va chạm",
+ "sounds.catMusic": "Nhạc",
+ "sounds.catRiser": "Dâng trào",
+ "sounds.catWhoosh": "Vút",
+ "sounds.comingSoon": "Thư viện âm thanh sắp ra mắt",
+ "sounds.concat": "Âm thanh Concat",
+ "sounds.concatHint": "Dùng tự do ở mọi nơi (CC0). Âm thanh được tải về lần đầu bạn phát hoặc thêm nó.",
"sounds.couldNotCopy": "Không thể sao chép {0} vào dự án: {1}",
+ "sounds.downloadFailed": "Không thể tải {0}: {1}",
"sounds.importSounds": "Nhập âm thanh",
+ "sounds.loadConcat": "Tải âm thanh Concat",
+ "sounds.loadConcatHint": "Âm thanh và nhạc miễn phí (CC0) để dùng cho mọi thứ. Danh sách được tải từ internet khi bạn yêu cầu, và mỗi âm thanh được tải về lần đầu bạn dùng.",
+ "sounds.loading": "Đang tải…",
"sounds.mine": "Âm thanh của tôi",
"sounds.mineHint": "Nhấp vào một âm thanh để nghe, nhấn + để thêm tại đầu phát, hoặc kéo nó lên dòng thời gian. Âm thanh của bạn có ở đây trong mọi dự án.",
"sounds.mineHintPhone": "Chạm vào một âm thanh để nghe, và + để thêm tại đầu phát. Âm thanh của bạn có ở đây trong mọi dự án.",
"sounds.noSoundsYet": "Bạn chưa có âm thanh riêng nào. Hãy nhập tệp âm thanh, chúng sẽ ở lại trong thư viện của bạn, sẵn sàng cho mọi dự án.",
"sounds.notASound": "{0} không phải là tệp âm thanh",
+ "sounds.offline": "Không thể truy cập âm thanh Concat. Hãy kiểm tra kết nối rồi thử lại.",
"sounds.openProjectFirst": "Hãy mở một dự án trước",
+ "sounds.refresh": "Làm mới",
"sounds.removed": "Đã xóa {0} khỏi thư viện của bạn",
"sounds.sounds": "Âm thanh",
+ "sounds.tryAgain": "Thử lại",
"speech.aboutInCharacters": "Khoảng {0}:{1} trong {2} · {3} ký tự",
"speech.american": "Mỹ",
"speech.anyVoiceRecording": "Bất kỳ giọng nói nào từ bản ghi âm",
diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.json
index 6906d654..e886bb9a 100644
--- a/src/crates/concat/locales/zh-Hans.json
+++ b/src/crates/concat/locales/zh-Hans.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0}现在没有按键",
"sounds.addedMany": "已将 {0} 个声音添加到你的资料库",
"sounds.addedOne": "已将一个声音添加到你的资料库",
+ "sounds.all": "全部",
+ "sounds.catAmbience": "环境音",
+ "sounds.catImpact": "撞击",
+ "sounds.catMusic": "音乐",
+ "sounds.catRiser": "上升音",
+ "sounds.catWhoosh": "嗖声",
+ "sounds.comingSoon": "声音库即将推出",
+ "sounds.concat": "Concat 声音",
+ "sounds.concatHint": "可在任何地方免费使用(CC0)。声音在首次播放或添加时下载。",
"sounds.couldNotCopy": "无法将 {0} 复制到项目中:{1}",
+ "sounds.downloadFailed": "无法下载 {0}:{1}",
"sounds.importSounds": "导入声音",
+ "sounds.loadConcat": "载入 Concat 声音",
+ "sounds.loadConcatHint": "免费的声音和音乐(CC0),可用于任何用途。列表在你请求时从网上获取,每个声音在首次使用时下载。",
+ "sounds.loading": "正在载入…",
"sounds.mine": "我的声音",
"sounds.mineHint": "点击声音即可试听,按 + 添加到播放头处,或将其拖到时间线上。你的声音在每个项目中都在这里。",
"sounds.mineHintPhone": "轻点声音即可试听,点 + 添加到播放头处。你的声音在每个项目中都在这里。",
"sounds.noSoundsYet": "还没有你自己的声音。导入声音文件后,它们会留在你的资料库中,每个项目都能用。",
"sounds.notASound": "{0} 不是声音文件",
+ "sounds.offline": "无法连接到 Concat 声音。请检查网络连接后重试。",
"sounds.openProjectFirst": "请先打开一个项目",
+ "sounds.refresh": "刷新",
"sounds.removed": "已从你的资料库中移除 {0}",
"sounds.sounds": "声音",
+ "sounds.tryAgain": "重试",
"speech.aboutInCharacters": "约 {0}:{1}({2})· {3} 个字符",
"speech.american": "美式",
"speech.anyVoiceRecording": "任意声音,源自录音",
diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.json
index a545d991..a32ca2e3 100644
--- a/src/crates/concat/locales/zh-TW.json
+++ b/src/crates/concat/locales/zh-TW.json
@@ -522,16 +522,32 @@
"shortcuts.unboundNow": "{0}目前沒有按鍵",
"sounds.addedMany": "已將 {0} 個聲音加入你的資料庫",
"sounds.addedOne": "已將一個聲音加入你的資料庫",
+ "sounds.all": "全部",
+ "sounds.catAmbience": "環境音",
+ "sounds.catImpact": "撞擊",
+ "sounds.catMusic": "音樂",
+ "sounds.catRiser": "上升音",
+ "sounds.catWhoosh": "咻聲",
+ "sounds.comingSoon": "聲音庫即將推出",
+ "sounds.concat": "Concat 聲音",
+ "sounds.concatHint": "可在任何地方免費使用(CC0)。聲音在第一次播放或加入時下載。",
"sounds.couldNotCopy": "無法將 {0} 複製到專案中:{1}",
+ "sounds.downloadFailed": "無法下載 {0}:{1}",
"sounds.importSounds": "匯入聲音",
+ "sounds.loadConcat": "載入 Concat 聲音",
+ "sounds.loadConcatHint": "免費的聲音與音樂(CC0),可用於任何用途。清單在你要求時從網路取得,每個聲音在第一次使用時下載。",
+ "sounds.loading": "正在載入…",
"sounds.mine": "我的聲音",
"sounds.mineHint": "點選聲音即可試聽,按 + 加到播放頭處,或將它拖到時間軸上。你的聲音在每個專案中都在這裡。",
"sounds.mineHintPhone": "輕觸聲音即可試聽,點 + 加到播放頭處。你的聲音在每個專案中都在這裡。",
"sounds.noSoundsYet": "還沒有你自己的聲音。匯入聲音檔後,它們會留在你的資料庫中,每個專案都能用。",
"sounds.notASound": "{0} 不是聲音檔",
+ "sounds.offline": "無法連線到 Concat 聲音。請檢查網路連線後再試一次。",
"sounds.openProjectFirst": "請先開啟一個專案",
+ "sounds.refresh": "重新整理",
"sounds.removed": "已從你的資料庫移除 {0}",
"sounds.sounds": "聲音",
+ "sounds.tryAgain": "再試一次",
"speech.aboutInCharacters": "約 {0}:{1}({2})· {3} 個字元",
"speech.american": "美式",
"speech.anyVoiceRecording": "任意聲音,源自錄音",
diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rs
index 7b8f334c..03c7bb95 100644
--- a/src/crates/concat/src/lib.rs
+++ b/src/crates/concat/src/lib.rs
@@ -397,6 +397,8 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::
.set_mine(ModelRc::from(models.sounds_mine.clone()));
app.global::<Sounds>()
.set_voices_saved(ModelRc::from(models.voices_saved.clone()));
+ app.global::<Sounds>()
+ .set_concat(ModelRc::from(models.sounds_concat.clone()));
app.global::<Sounds>()
.set_voices_builtin(ModelRc::from(models.voices_builtin.clone()));
app.global::<Sounds>()
@@ -1381,6 +1383,14 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::
state.handle(Msg::Sounds(SoundsMsg::Shown(on)));
}));
// Voices: Text to speech on the voice or style clicked.
+ // Concat's own sounds: the list asked for by a click, never at
+ // startup.
+ sounds.on_load_concat(on_window!(|state| {
+ state.handle(Msg::Sounds(SoundsMsg::LoadConcat));
+ }));
+ sounds.on_concat_category_changed(on_window!(|state, index: i32| {
+ state.handle(Msg::Sounds(SoundsMsg::ConcatCategory(index)));
+ }));
sounds.on_voice_open(on_window!(|state, id: SharedString| {
state.open_voice(id.as_str());
}));
diff --git a/src/crates/concat/src/panes/sounds.rs b/src/crates/concat/src/panes/sounds.rs
index 621d494e..d4aa08ff 100644
--- a/src/crates/concat/src/panes/sounds.rs
+++ b/src/crates/concat/src/panes/sounds.rs
@@ -20,8 +20,10 @@
use std::cell::RefCell;
use std::collections::HashMap;
use std::path::{Path, PathBuf};
+use std::sync::Arc;
+use std::sync::atomic::AtomicBool;
-use concat_host::sounds::{self, Library, Sound};
+use concat_host::sounds::{self, Catalogue, Library, Sound};
use concat_project::Command;
use slint::SharedString;
@@ -32,6 +34,35 @@ use crate::ui::{SoundCardData, VoiceCardData};
/// The prefix of a card id on the Mine shelf.
const MINE: &str = "mine-";
+/// The prefix of a card id on the Concat shelf.
+const CONCAT: &str = "concat-";
+
+/// The Concat shelf's categories, as the manifest names them; the sidebar
+/// shows them in the interface's language, after All.
+pub const CATEGORIES: [&str; 5] = ["Whoosh", "Impact", "Riser", "Ambience", "Music"];
+
+/// Where the Concat shelf stands.
+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+pub enum ConcatState {
+ /// Not asked for: the shelf offers to load it.
+ #[default]
+ Idle,
+ Loading,
+ Ready,
+ /// The assets repository has no manifest yet.
+ Soon,
+ /// It could not be reached.
+ Offline,
+}
+
+/// What to do with a Concat sound once it has arrived.
+#[derive(Clone, Debug)]
+pub enum Then {
+ /// Play it.
+ Preview,
+ /// Lay it on this lane, or the first with room, at this moment.
+ Place(Option<String>, f64),
+}
/// Everything that can happen to the Audio page.
#[derive(Clone, Debug)]
@@ -49,6 +80,16 @@ pub enum SoundsMsg {
/// Whether a library is showing the page, so a drop of sound files on
/// the window goes into the library rather than the bin.
Shown(bool),
+ /// "Load Concat sounds", or Refresh: the manifest fetched.
+ LoadConcat,
+ /// The manifest's worker is done: the list, none yet, or why not.
+ ConcatLoaded(Result<Option<Catalogue>, String>),
+ /// A category of the Concat shelf picked: 0 All, then [`CATEGORIES`].
+ ConcatCategory(i32),
+ /// A Concat sound's download, how far.
+ Fetching(String, f32),
+ /// A Concat sound's download is done.
+ Fetched(String, Result<PathBuf, String>),
}
/// The page's state.
@@ -60,6 +101,18 @@ pub struct SoundsPane {
pub shown: bool,
/// A sound import running.
pub importing: bool,
+ /// Concat's sounds, once the manifest has been read, and where the
+ /// shelf stands.
+ pub catalogue: Catalogue,
+ pub concat: ConcatState,
+ /// The category shown: 0 All, then a row of [`CATEGORIES`].
+ pub category: usize,
+ /// Downloads running, by card: how far, and what to do once in.
+ fetching: HashMap<String, (f32, Then)>,
+ /// Stops the downloads when the window goes.
+ cancel: Arc<AtomicBool>,
+ /// Where the downloads go: the app's data folder.
+ dirs: Option<concat_host::AppDirs>,
/// Each card's envelope as path commands, by card id: the cards are
/// published on every frame of playback, and the path is the one
/// expensive line of one.
@@ -69,8 +122,18 @@ pub struct SoundsPane {
impl SoundsPane {
/// The library as it is on this machine's disk.
pub fn open(dirs: &concat_host::AppDirs) -> SoundsPane {
+ // The manifest as last fetched, if it ever was: the shelf is
+ // there from the first frame, and no request is made for it.
+ let catalogue = sounds::cached_catalogue(dirs);
SoundsPane {
library: Library::open(dirs),
+ concat: if catalogue.is_some() {
+ ConcatState::Ready
+ } else {
+ ConcatState::Idle
+ },
+ catalogue: catalogue.unwrap_or_default(),
+ dirs: Some(dirs.clone()),
..SoundsPane::default()
}
}
@@ -80,6 +143,69 @@ impl SoundsPane {
pub fn update(&mut self, msg: SoundsMsg, studio: &mut Studio) {
match msg {
SoundsMsg::Shown(on) => self.shown = on,
+ SoundsMsg::LoadConcat => {
+ let Some(dirs) = self.dirs.clone() else {
+ return;
+ };
+ if self.concat == ConcatState::Loading {
+ return;
+ }
+ if self.concat != ConcatState::Ready {
+ self.concat = ConcatState::Loading;
+ }
+ crate::host::spawn(
+ move || sounds::fetch_catalogue(&dirs),
+ |studio, _, _, result| {
+ studio.handle(Msg::Sounds(SoundsMsg::ConcatLoaded(result)));
+ },
+ );
+ }
+ SoundsMsg::ConcatLoaded(result) => match result {
+ Ok(Some(catalogue)) => {
+ self.catalogue = catalogue;
+ self.concat = ConcatState::Ready;
+ }
+ Ok(None) => self.concat = ConcatState::Soon,
+ Err(error) => {
+ log::info!("sounds: the Concat list could not be fetched: {error}");
+ // A list already on screen stays: the refresh failed,
+ // not the shelf.
+ if self.concat != ConcatState::Ready {
+ self.concat = ConcatState::Offline;
+ } else {
+ studio.notify(&t("sounds.offline"), true);
+ }
+ }
+ },
+ SoundsMsg::ConcatCategory(index) => {
+ self.category = (index.max(0) as usize).min(CATEGORIES.len());
+ }
+ SoundsMsg::Fetching(card, done) => {
+ if let Some((progress, _)) = self.fetching.get_mut(&card) {
+ *progress = done;
+ }
+ }
+ SoundsMsg::Fetched(card, result) => {
+ let Some((_, then)) = self.fetching.remove(&card) else {
+ return;
+ };
+ let name = self
+ .listed(&card)
+ .map(|sound| sound.name.clone())
+ .unwrap_or_default();
+ match result {
+ Ok(path) => match then {
+ Then::Preview => studio.preview_file(&card, &name, &path),
+ Then::Place(track_id, start) => {
+ studio.place_sound(&name, &path, track_id, start);
+ }
+ },
+ Err(error) if error == "cancelled" => {}
+ Err(error) => {
+ studio.notify(&tf("sounds.downloadFailed", &[&name, &error]), true);
+ }
+ }
+ }
SoundsMsg::Import(paths) => {
let (taken, refused): (Vec<PathBuf>, Vec<PathBuf>) =
paths.into_iter().partition(|path| sounds::is_sound(path));
@@ -129,11 +255,16 @@ impl SoundsPane {
SoundsMsg::Preview(card) => {
if let Some((name, path)) = self.file_of(&card) {
studio.preview_file(&card, &name, &path);
+ } else {
+ self.fetch(&card, Then::Preview);
}
}
SoundsMsg::Add(card) => {
+ let start = f64::from(studio.playhead.max(0.0));
if let Some((name, path)) = self.file_of(&card) {
- studio.place_sound(&name, &path, None, f64::from(studio.playhead.max(0.0)));
+ studio.place_sound(&name, &path, None, start);
+ } else {
+ self.fetch(&card, Then::Place(None, start));
}
}
SoundsMsg::Remove(card) => {
@@ -164,8 +295,13 @@ impl SoundsPane {
}
}
- /// The name and the file a card stands for, when it is on disk.
+ /// The name and the file a card stands for, when it is on disk: a
+ /// sound of the user's own, or one of Concat's already downloaded.
pub fn file_of(&self, card: &str) -> Option<(String, PathBuf)> {
+ if let Some(sound) = self.listed(card) {
+ let path = sounds::cached_file(self.dirs.as_ref()?, sound);
+ return path.is_file().then(|| (sound.name.clone(), path));
+ }
let id = card.strip_prefix(MINE)?;
let sound = self.library.get(id)?;
Some((sound.name.clone(), self.library.path_of(sound)))
@@ -173,11 +309,77 @@ impl SoundsPane {
/// A card as a payload names it, for a drop: its name and its length.
pub fn summary(&self, card: &str) -> Option<(String, f64)> {
+ if let Some(sound) = self.listed(card) {
+ return Some((sound.name.clone(), sound.duration));
+ }
let id = card.strip_prefix(MINE)?;
let sound = self.library.get(id)?;
Some((sound.name.clone(), sound.duration))
}
+ /// The Concat sound a card names.
+ fn listed(&self, card: &str) -> Option<&sounds::Listed> {
+ self.catalogue.get(card.strip_prefix(CONCAT)?)
+ }
+
+ /// Downloads a Concat sound on a worker, then does `then` with it. A
+ /// second ask while it comes only changes what is done with it.
+ pub fn fetch(&mut self, card: &str, then: Then) {
+ let (Some(sound), Some(dirs)) = (self.listed(card).cloned(), self.dirs.clone()) else {
+ return;
+ };
+ if let Some((_, held)) = self.fetching.get_mut(card) {
+ *held = then;
+ return;
+ }
+ self.fetching.insert(card.to_owned(), (0.0, then));
+ let cancel = Arc::clone(&self.cancel);
+ let (key, done) = (card.to_owned(), card.to_owned());
+ crate::host::spawn(
+ move || {
+ sounds::fetch_sound(&dirs, &sound, &cancel, &mut |received, total| {
+ if total > 0 {
+ let fraction = (received as f32 / total as f32).clamp(0.0, 1.0);
+ let key = key.clone();
+ crate::host::on_ui(move |studio, _, _| {
+ studio.handle(Msg::Sounds(SoundsMsg::Fetching(key, fraction)));
+ });
+ }
+ })
+ },
+ move |studio, _, _, result| {
+ studio.handle(Msg::Sounds(SoundsMsg::Fetched(done, result)));
+ },
+ );
+ }
+
+ /// The Concat shelf's rows, narrowed to the category picked.
+ pub fn concat_rows(&self) -> Vec<SoundCardData> {
+ let category = self.category.checked_sub(1).and_then(|row| CATEGORIES.get(row));
+ let Some(dirs) = self.dirs.as_ref() else {
+ return Vec::new();
+ };
+ self.catalogue
+ .sounds
+ .iter()
+ .filter(|sound| category.is_none_or(|wanted| sound.category.eq_ignore_ascii_case(wanted)))
+ .map(|sound| {
+ let card = format!("{CONCAT}{}", sound.id);
+ let progress = self.fetching.get(&card).map_or(-1.0, |(done, _)| *done);
+ SoundCardData {
+ ready: sounds::cached_file(dirs, sound).is_file(),
+ id: card.into(),
+ name: sound.name.as_str().into(),
+ duration: sound.duration as f32,
+ wave: SharedString::new(),
+ detail: category_label(&sound.category).into(),
+ removable: false,
+ progress,
+ }
+ })
+ .collect()
+ }
+
/// The Mine shelf's cards.
pub fn mine(&self) -> Vec<SoundCardData> {
self.library
@@ -212,6 +414,19 @@ impl SoundsPane {
}
}
+/// A category as the interface says it: one of the five in its language,
+/// or the manifest's own word.
+pub fn category_label(category: &str) -> String {
+ match category.to_ascii_lowercase().as_str() {
+ "whoosh" => t("sounds.catWhoosh"),
+ "impact" => t("sounds.catImpact"),
+ "riser" => t("sounds.catRiser"),
+ "ambience" => t("sounds.catAmbience"),
+ "music" => t("sounds.catMusic"),
+ _ => category.to_owned(),
+ }
+}
+
/// A file's name, for a notice.
fn display_name(path: &Path) -> String {
path.file_name()
@@ -318,6 +533,10 @@ impl Studio {
pub fn place_card(&mut self, card: &str, track_id: Option<String>, start: f64) {
if let Some((name, path)) = self.sounds.file_of(card) {
self.place_sound(&name, &path, track_id, start);
+ } else {
+ // One of Concat's not downloaded yet: it lands where it was
+ // dropped once it is in.
+ self.sounds.fetch(card, Then::Place(track_id, start));
}
}
diff --git a/src/crates/concat/src/studio.rs b/src/crates/concat/src/studio.rs
index 2bc8a4a4..f5653c0f 100644
--- a/src/crates/concat/src/studio.rs
+++ b/src/crates/concat/src/studio.rs
@@ -677,6 +677,7 @@ pub struct Models {
/// The Audio page's shelves.
pub sounds_mine: Rc<VecModel<crate::ui::SoundCardData>>,
pub voices_saved: Rc<VecModel<crate::ui::VoiceCardData>>,
+ pub sounds_concat: Rc<VecModel<crate::ui::SoundCardData>>,
pub voices_builtin: Rc<VecModel<crate::ui::VoiceCardData>>,
pub voice_styles: Rc<VecModel<crate::ui::VoiceCardData>>,
pub transcribers: Rc<VecModel<ModelData>>,
@@ -751,6 +752,7 @@ impl Models {
speech_sample_details: Rc::new(VecModel::default()),
sounds_mine: Rc::new(VecModel::default()),
voices_saved: Rc::new(VecModel::default()),
+ sounds_concat: Rc::new(VecModel::default()),
voices_builtin: Rc::new(VecModel::default()),
voice_styles: Rc::new(VecModel::default()),
transcribers: Rc::new(VecModel::default()),
@@ -10890,6 +10892,19 @@ impl Studio {
app.set_speech(self.speech.data(self));
// The Audio page.
sync(&models.sounds_mine, self.sounds.mine());
+ sync(&models.sounds_concat, self.sounds.concat_rows());
+ {
+ use crate::panes::sounds::ConcatState;
+ let page = app.global::<crate::ui::Sounds>();
+ page.set_concat_state(match self.sounds.concat {
+ ConcatState::Idle => 0,
+ ConcatState::Loading => 1,
+ ConcatState::Ready => 2,
+ ConcatState::Soon => 3,
+ ConcatState::Offline => 4,
+ });
+ page.set_concat_category(self.sounds.category as i32);
+ }
app.global::<crate::ui::Sounds>()
.set_importing(self.sounds.importing);
let (saved, builtin, styles, ready) = self.voice_cards();
diff --git a/src/crates/concat/ui/workspace/audio-page.slint b/src/crates/concat/ui/workspace/audio-page.slint
index 22b4ba1b..e6220c4b 100644
--- a/src/crates/concat/ui/workspace/audio-page.slint
+++ b/src/crates/concat/ui/workspace/audio-page.slint
@@ -68,6 +68,16 @@ export global Sounds {
in property <[SoundCardData]> mine;
/// Sounds are being copied in.
in property <bool> importing;
+ /// The Concat shelf: Concat's own sounds, narrowed to the category
+ /// picked, and where the shelf stands - 0 not asked for, 1 loading,
+ /// 2 listed, 3 coming soon (no list published yet), 4 unreachable.
+ in property <[SoundCardData]> concat;
+ in property <int> concat-state;
+ /// 0 All, then Whoosh, Impact, Riser, Ambience, Music.
+ in property <int> concat-category;
+ /// "Load Concat sounds", Refresh, Try again: the list fetched.
+ callback load-concat();
+ callback concat-category-changed(index: int);
/// The Import button: the system's picker, for sound files.
callback import();
@@ -125,7 +135,7 @@ export component SoundRow inherits Rectangle {
property <bool> playing-row: SourcePreview.card == root.item.id && root.item.id != "";
property <bool> playing: root.playing-row && SourcePreview.playing;
- property <string> payload: root.touch-sized || !root.item.ready ? ""
+ property <string> payload: root.touch-sized ? ""
: "sound:\{root.item.id}:\{root.item.name}";
height: root.touch-sized ? 56px : 44px;
@@ -146,7 +156,7 @@ export component SoundRow inherits Rectangle {
card := TouchArea {
mouse-cursor: pointer;
clicked => { root.preview(); }
- double-clicked => { if (root.item.ready) { root.add(); } }
+ double-clicked => { root.add(); }
HorizontalLayout {
padding-left: 6px;
@@ -165,6 +175,7 @@ export component SoundRow inherits Rectangle {
x: (parent.width - self.width) / 2;
y: (parent.height - self.height) / 2;
glyph: root.playing ? Glyph.pause
+ : !root.item.ready && root.item.progress < 0 && !card.has-hover ? Glyph.import
: (card.has-hover || root.touch-sized) ? Glyph.play
: Glyph.music;
size: parent.width * 0.42;
@@ -224,6 +235,15 @@ export component SoundRow inherits Rectangle {
}
}
+ // A download under way, as a line along its foot.
+ if root.item.progress >= 0: Rectangle {
+ x: 0;
+ y: parent.height - 2px;
+ width: parent.width * Math.clamp(root.item.progress, 0, 1);
+ height: 2px;
+ background: Theme.fg-muted;
+ }
+
// How far the one playing has got, as a line along its foot.
if root.playing-row: Rectangle {
x: 0;
diff --git a/src/crates/concat/ui/workspace/media-pane.slint b/src/crates/concat/ui/workspace/media-pane.slint
index 35ca6486..e2627a90 100644
--- a/src/crates/concat/ui/workspace/media-pane.slint
+++ b/src/crates/concat/ui/workspace/media-pane.slint
@@ -1798,10 +1798,12 @@ export component MediaPane inherits Rectangle {
/// The Audio page is up, or not: a drop of sound files on the window
/// goes into the library while it is.
changed tab => { Sounds.shown(root.tab == 8); }
- /// The Audio page's shelf: 0 = Mine, 10 = Voices, 11 = Styles.
+ /// The Audio page's shelf: 0 = Mine, 1 = Concat, 10 = Voices,
+ /// 11 = Styles.
property <int> audio-category;
property <bool> sounds-open: true;
property <bool> voices-open: true;
+ property <bool> concat-open: true;
/// How far left the page strip can be pushed: nothing, while its chips
/// fit. See `strip`.
property <length> strip-floor: Math.min(0px, strip.width - strip.content-width);
@@ -2159,6 +2161,28 @@ export component MediaPane inherits Rectangle {
current: root.audio-category == 0;
clicked => { root.audio-category = 0; }
}
+ // Concat's own sounds, by category. The list is
+ // fetched only when the shelf asks for it.
+ CategoryHeading {
+ height: 26px;
+ title: I18n.t("sounds.concat");
+ open: root.concat-open;
+ toggled => { root.concat-open = !root.concat-open; }
+ }
+ if root.concat-open: VerticalLayout {
+ spacing: 1px;
+ for label[index] in [I18n.t("sounds.all"), I18n.t("sounds.catWhoosh"),
+ I18n.t("sounds.catImpact"), I18n.t("sounds.catRiser"),
+ I18n.t("sounds.catAmbience"), I18n.t("sounds.catMusic")]: CategoryRow {
+ height: 24px;
+ label: label;
+ current: root.audio-category == 1 && Sounds.concat-category == index;
+ clicked => {
+ root.audio-category = 1;
+ Sounds.concat-category-changed(index);
+ }
+ }
+ }
CategoryHeading {
height: 26px;
title: I18n.t("voices.voices");
@@ -2515,6 +2539,64 @@ export component MediaPane inherits Rectangle {
}
}
+ // Concat's own sounds: offered, not fetched, until asked
+ // for - nothing goes online at startup - then listed, each
+ // downloaded the first time it is played or laid down.
+ if root.tab == 8 && root.audio-category == 1: VerticalLayout {
+ padding: 8px;
+ spacing: 8px;
+
+ if Sounds.concat-state == 0 || Sounds.concat-state == 1: Text {
+ text: I18n.t("sounds.loadConcatHint");
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ wrap: word-wrap;
+ }
+ if Sounds.concat-state == 0 || Sounds.concat-state == 1: ImportButton {
+ label: I18n.t("sounds.loadConcat");
+ busy-label: I18n.t("sounds.loading");
+ busy: Sounds.concat-state == 1;
+ glyph: Glyph.music;
+ clicked => { Sounds.load-concat(); }
+ }
+ if Sounds.concat-state == 4: Text {
+ text: I18n.t("sounds.offline");
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ wrap: word-wrap;
+ }
+ if Sounds.concat-state == 4: ImportButton {
+ label: I18n.t("sounds.tryAgain");
+ glyph: Glyph.reset;
+ clicked => { Sounds.load-concat(); }
+ }
+ if Sounds.concat-state == 2: HorizontalLayout {
+ spacing: 8px;
+ Text {
+ horizontal-stretch: 1;
+ text: I18n.t("sounds.concatHint");
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ wrap: word-wrap;
+ }
+ ImportButton {
+ horizontal-stretch: 0;
+ height: Theme.h;
+ label: I18n.t("sounds.refresh");
+ glyph: Glyph.reset;
+ clicked => { Sounds.load-concat(); }
+ }
+ }
+ if Sounds.concat-state == 2: SoundList {
+ items: Sounds.concat;
+ }
+ }
+
+ if root.tab == 8 && root.audio-category == 1 && Sounds.concat-state == 3: Empty {
+ glyph: Glyph.music;
+ text: I18n.t("sounds.comingSoon");
+ }
+
// Voices: the user's saved clones and the models' own
// speakers, or the styles; a click opens Text to speech
// on one.