Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

Recognize Google Meet rooms with the meet prefix

altic-dev308e6028fef3
diff --git a/Sources/Fluid/Services/Meeting/MeetingAppRegistry.swift b/Sources/Fluid/Services/Meeting/MeetingAppRegistry.swift
index 7e84255d..607eaef8 100644
--- a/Sources/Fluid/Services/Meeting/MeetingAppRegistry.swift
+++ b/Sources/Fluid/Services/Meeting/MeetingAppRegistry.swift
@@ -170,9 +170,10 @@ nonisolated enum MeetingInCallURLMatcher {
}
}
- /// `/xxx-yyyy-zzz` — a lowercase-letter room code, three groups separated by hyphens.
+ /// `/xxx-yyyy-zzz` or `/meet/xxx-yyyy-zzz` — the same lowercase-letter room code.
private static func matchesGoogleMeetPath(_ path: String) -> Bool {
- let segment = path.trimmingCharacters(in: CharacterSet(charactersIn: "/"))
+ var segment = path.trimmingCharacters(in: CharacterSet(charactersIn: "/"))
+ if segment.hasPrefix("meet/") { segment.removeFirst("meet/".count) }
let parts = segment.split(separator: "-")
guard parts.count == 3 else { return false }
let lengths = parts.map(\.count)
diff --git a/Tests/FluidDictationIntegrationTests/MeetingAutoDetectorTests.swift b/Tests/FluidDictationIntegrationTests/MeetingAutoDetectorTests.swift
index 1b6f945f..c0b602d5 100644
--- a/Tests/FluidDictationIntegrationTests/MeetingAutoDetectorTests.swift
+++ b/Tests/FluidDictationIntegrationTests/MeetingAutoDetectorTests.swift
@@ -1981,6 +1981,32 @@ final class MeetingAutoDetectorTests: XCTestCase {
XCTAssertNil(MeetingAppRegistry.tier(forBundleIdentifier: "com.apple.FaceTime"))
}
+ func testGoogleMeetRoomURLsAcceptBothPathFormats() {
+ for path in ["/abc-defg-hij", "/abc-defg-hij/", "/meet/abc-defg-hij", "/meet/abc-defg-hij/"] {
+ XCTAssertTrue(MeetingInCallURLMatcher.isInCallURL(host: "meet.google.com", path: path), path)
+ }
+ }
+
+ func testGoogleMeetRoomURLsRejectLandingPagesAndMalformedRooms() {
+ for path in [
+ "/",
+ "/meet",
+ "/meet/",
+ "/landing",
+ "/meet/landing",
+ "/meet/abc-defg-hi",
+ "/meet/ABC-defg-hij",
+ "/meet/abc-defg-h1j",
+ "/meet/meet/abc-defg-hij",
+ "/other/abc-defg-hij",
+ "/meet//abc-defg-hij",
+ "/meet/abc-defg-hij/extra",
+ ] {
+ XCTAssertFalse(MeetingInCallURLMatcher.isInCallURL(host: "meet.google.com", path: path), path)
+ }
+ XCTAssertFalse(MeetingInCallURLMatcher.isInCallURL(host: "meet.google.com.example.com", path: "/meet/abc-defg-hij"))
+ }
+
func testInCallURLMatcherAcceptsRoomsAndRejectsLandingPages() {
XCTAssertTrue(MeetingInCallURLMatcher.isInCallURL(host: "meet.google.com", path: "/abc-defg-hij"))
XCTAssertFalse(MeetingInCallURLMatcher.isInCallURL(host: "meet.google.com", path: "/"))