Skip to content

Comments

Update SpeechFramework.md#17

Merged
rudrankriyam merged 1 commit intomainfrom
xcode26.1-beta3
Oct 21, 2025
Merged

Update SpeechFramework.md#17
rudrankriyam merged 1 commit intomainfrom
xcode26.1-beta3

Conversation

@rudrankriyam
Copy link
Member

No description provided.

@rudrankriyam rudrankriyam merged commit a776522 into main Oct 21, 2025
1 check was pending
@gemini-code-assist
Copy link

Summary of Changes

Hello @rudrankriyam, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on refining the SpeechFramework.md documentation by adjusting the protocol conformance for several core speech-related classes. The DictationTranscriber, SpeechDetector, and SpeechTranscriber classes have been updated to remove their conformance to the SpeechModule protocol. Additionally, some specific documentation comments within the SpeechDetector class were removed, contributing to a more streamlined and accurate API reference.

Highlights

  • Class Conformance Update: The DictationTranscriber class no longer conforms to the SpeechModule protocol.
  • Class Conformance Update: The SpeechDetector class no longer conforms to the SpeechModule protocol.
  • Class Conformance Update: The SpeechTranscriber class no longer conforms to the SpeechModule protocol.
  • Documentation Cleanup: Redundant documentation comments for the results and availableCompatibleAudioFormats properties within the SpeechDetector class have been removed.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the SpeechFramework.md documentation. While the changes to DictationTranscriber and SpeechTranscriber are good cleanups, the modifications to SpeechDetector introduce significant issues. Specifically, removing its conformance to SpeechModule makes the documentation inconsistent with the provided Swift source code, which expects SpeechDetector to be a SpeechModule. Additionally, public properties on SpeechDetector have had their documentation removed, which reduces API clarity. I've added comments with suggestions to address these issues.

@available(tvOS, unavailable)
@available(watchOS, unavailable)
final public class SpeechDetector : SpeechModule {
final public class SpeechDetector {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Removing SpeechModule conformance from SpeechDetector makes this documentation inconsistent with the provided source code. The implementation in Sources/AuralKit/SpeechSession+Transcriber.swift (lines 48-58) explicitly casts SpeechDetector to any SpeechModule to use it with SpeechAnalyzer. This change will cause confusion for developers and likely reflects an error in the documentation update. If SpeechDetector is no longer a SpeechModule, the implementation code must be updated accordingly. Otherwise, this documentation change should be reverted.

Suggested change
final public class SpeechDetector {
final public class SpeechDetector : SpeechModule {


If there is an error in the overall analysis, all modules will throw the error from their individual result sequence.
*/
final public var results: some Sendable & AsyncSequence<SpeechDetector.Result, any Error> { get }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The documentation for the public results property has been removed. All public APIs should be documented to maintain clarity. Please restore the documentation for this property. A more specific comment explaining that results are only available when reportResults is enabled during initialization would be even more helpful.

Suggested change
final public var results: some Sendable & AsyncSequence<SpeechDetector.Result, any Error> { get }
/**
An asynchronous sequence containing this module's analysis results. Results are added to the sequence as they are created.
Each module has its own result sequence and data structure.
If there is an error in the overall analysis, all modules will throw the error from their individual result sequence.
*/
final public var results: some Sendable & AsyncSequence<SpeechDetector.Result, any Error> { get }


This property may be accessed before the module is added to the analyzer.
*/
final public var availableCompatibleAudioFormats: [AVAudioFormat] { get }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The documentation for the public availableCompatibleAudioFormats property has been removed. To ensure the API remains self-documenting and easy to understand, please restore the documentation for this property.

Suggested change
final public var availableCompatibleAudioFormats: [AVAudioFormat] { get }
/**
The audio formats that this module is able to analyze, given its configuration.
If the audio format doesn't matter, then there will be one format listed with a sample rate of `kAudioStreamAnyRate` and other values 0.
If assets are necessary yet not installed on device, then the list will be empty.
This property may be accessed before the module is added to the analyzer.
*/
final public var availableCompatibleAudioFormats: [AVAudioFormat] { get }

@rudrankriyam rudrankriyam deleted the xcode26.1-beta3 branch October 24, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant