Docs / Raw

Voice Mode v4.1.1 Release Announcement

Sourced from docs/releases/v4.1.1-release-announcement.md

Edit on GitHub

Voice Mode v4.1.1 Release Notes

Version: 4.1.1 (Patch Release) Date: December 2024 Type: Bug fixes and security improvements


Summary

Voice Mode v4.1.1 is a patch release focused on test suite stability and security hardening. This release resolves all failing tests from v4.1.0 and addresses Bandit security warnings for HuggingFace model loading.


Changes

Bug Fixes

Test Suite Stability (PR #159)

All 8 failing tests from v4.1.0 have been resolved:

TestIssueFix
test_translation_timeout_triggers_degradationBudget too lowIncreased budget to 2000ms
test_translation_failure_triggers_degradationSame as aboveSame fix applied
test_process_audio_returns_segmentsMock target incorrectMock entire process_audio method
test_speaker_change_callbackInvalid method callTest callback registration directly
test_subscribe_to_patientMissing feature flag mockAdded feature_flag_service.is_enabled mock
test_get_latest_vitalsInitialization issueMock method directly
test_downgrade_triggers_on_poor_metricsWrong assertionTest NetworkCondition instead
test_concurrent_session_testDynamic test nameUse startswith() assertion

Test Results: 41/41 passing

Security Improvements

HuggingFace Model Revision Pinning (PR #161)

All HuggingFace model loading calls now include explicit revision parameters to prevent supply chain attacks (Bandit B615):

  • enhanced_phi_detector.py: PHI NER model pinned
  • speaker_diarization_service.py: Diarization and embedding models pinned
  • medical_embedding_service.py: Medical embedding models pinned
  • medical_embeddings.py: Additional embedding models pinned

Security Metrics:

Metricv4.1.0v4.1.1
High-severity issues00
Medium-severity issues166
Issues with nosec1440

The remaining 6 medium issues are false positives:

  • 5 SQL queries using parameterized values (B608)
  • 1 local tokenizer path loading (B615)

Documentation

New Documentation:

  • docs/voice/MODEL_VERSIONS.md: Tracks all pinned model revisions
  • docs/voice/design/g2p-alternatives-evaluation.md: G2P library evaluation
  • UI Components Guide added to What's New v4.1

Updated Documentation:

  • Post-v4.1 Roadmap with current status
  • What's New v4.1 with UI components guide

Upgrade Notes

From v4.1.0 to v4.1.1

No breaking changes. This is a drop-in replacement.

Recommended:

  1. Pull the latest changes
  2. Run tests to verify: pytest tests/ -v
  3. Review MODEL_VERSIONS.md for pinned revisions

Dependencies

No new dependencies. Existing model downloads will continue to work.


PRs Included

PRTitleType
#159Fix 8 failing voice mode testsBug fix
#161Pin HuggingFace model revisions (Bandit B615)Security

What's Next

v4.1.2 (Planned)

  • Phase 1 lexicons complete (Spanish, Chinese, English Quranic)
  • G2P fallback pronunciation cache
  • CMUdict + gruut integration
  • espeak-ng deployment improvements

v4.2.0 (Planned)

  • Barge-in improvements
  • Speaker limit increase (4 → 8)
  • Bandwidth prediction
  • SMART on FHIR authentication

Contributors

  • Platform Team: Test fixes, documentation
  • Backend Team: Security improvements, model pinning
  • Claude: Automated code generation and review

Release Tag: v4.1.1 Branch: main Commit: 02f88a3

Beginning of guide
End of guide