meeting-noter 0.6.0__py3-none-any.whl → 0.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of meeting-noter might be problematic. Click here for more details.

@@ -8,13 +8,39 @@ from datetime import datetime
8
8
  from typing import Optional
9
9
 
10
10
 
11
+ def _get_bundled_model_path() -> Optional[Path]:
12
+ """Check if bundled model is available via meeting-noter-models package."""
13
+ try:
14
+ from meeting_noter_models import get_model_path, MODEL_NAME
15
+ model_path = get_model_path()
16
+ if model_path.exists() and (model_path / "model.bin").exists():
17
+ return model_path
18
+ except ImportError:
19
+ pass
20
+ return None
21
+
22
+
11
23
  def get_model(model_size: str = "tiny.en"):
12
24
  """Load the Whisper model.
13
25
 
14
- Models are cached after first download (~75MB for tiny.en).
26
+ Priority:
27
+ 1. Bundled model from meeting-noter-models package (offline)
28
+ 2. Download from Hugging Face Hub (cached after first download)
15
29
  """
16
30
  from faster_whisper import WhisperModel
17
31
 
32
+ # Check for bundled model first (for offline use)
33
+ bundled_path = _get_bundled_model_path()
34
+ if bundled_path and model_size == "tiny.en":
35
+ click.echo(f"Loading bundled model '{model_size}'...")
36
+ model = WhisperModel(
37
+ str(bundled_path),
38
+ device="cpu",
39
+ compute_type="int8",
40
+ )
41
+ return model
42
+
43
+ # Fall back to Hugging Face download
18
44
  click.echo(f"Loading model '{model_size}'...")
19
45
 
20
46
  # Use INT8 for CPU efficiency
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meeting-noter
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Offline meeting transcription for macOS with automatic meeting detection
5
5
  Author: Victor
6
6
  License: MIT
@@ -35,6 +35,8 @@ Requires-Dist: pyobjc-framework-ScreenCaptureKit>=9.0; sys_platform == "darwin"
35
35
  Requires-Dist: pyobjc-framework-AVFoundation>=9.0; sys_platform == "darwin"
36
36
  Requires-Dist: pyobjc-framework-CoreMedia>=9.0; sys_platform == "darwin"
37
37
  Requires-Dist: pyobjc-framework-libdispatch>=9.0; sys_platform == "darwin"
38
+ Provides-Extra: offline
39
+ Requires-Dist: meeting-noter-models>=0.1.0; extra == "offline"
38
40
  Provides-Extra: dev
39
41
  Requires-Dist: pytest>=7.0; extra == "dev"
40
42
  Requires-Dist: pytest-cov; extra == "dev"
@@ -31,9 +31,9 @@ meeting_noter/resources/icon_32.png,sha256=Bw6hJXqkd-d1OfDpFv2om7Stex7daedxnpXt3
31
31
  meeting_noter/resources/icon_512.png,sha256=o7X3ngYcppcIAAk9AcfPx94MUmrsPRp0qBTpb9SzfX8,5369
32
32
  meeting_noter/resources/icon_64.png,sha256=TqG7Awx3kK8YdiX1e_z1odZonosZyQI2trlkNZCzUoI,607
33
33
  meeting_noter/transcription/__init__.py,sha256=7GY9diP06DzFyoli41wddbrPv5bVDzH35bmnWlIJev4,29
34
- meeting_noter/transcription/engine.py,sha256=HK2J2QOBNIDm1MXW-gkagXP8C8cqUfK_WylHQD_LqOI,6320
35
- meeting_noter-0.6.0.dist-info/METADATA,sha256=Yr8451hXXCNek9wMxOvcXM1ziOFaCTeX70-kiNjUvsc,6654
36
- meeting_noter-0.6.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
37
- meeting_noter-0.6.0.dist-info/entry_points.txt,sha256=rKNhzjSF5-e3bLRr8LVe22FeiwcacXabCvNpoEXfu4I,56
38
- meeting_noter-0.6.0.dist-info/top_level.txt,sha256=9Tuq04_0SXM0OXOHVbOHkHkB5tG3fqkrMrfzCMpbLpY,14
39
- meeting_noter-0.6.0.dist-info/RECORD,,
34
+ meeting_noter/transcription/engine.py,sha256=G9NcSS6Q-UhW7PlQ0E85hQXn6BWao64nIvyw4NR2yxI,7208
35
+ meeting_noter-0.6.1.dist-info/METADATA,sha256=KCJbo3BWGaFyysbFWkUDi7SMsd-65P_fNLCmiNAFOVk,6741
36
+ meeting_noter-0.6.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
37
+ meeting_noter-0.6.1.dist-info/entry_points.txt,sha256=rKNhzjSF5-e3bLRr8LVe22FeiwcacXabCvNpoEXfu4I,56
38
+ meeting_noter-0.6.1.dist-info/top_level.txt,sha256=9Tuq04_0SXM0OXOHVbOHkHkB5tG3fqkrMrfzCMpbLpY,14
39
+ meeting_noter-0.6.1.dist-info/RECORD,,