Closed jjmaldonis closed 2 months ago
The changes introduce a new nullable property named numerals
to both the PreRecordedSchema
and LiveSchema
classes within the Deepgram models. This property facilitates the conversion of numbers from written to numerical format and is annotated with JsonIgnore
to exclude it from serialization when null. Additionally, the LiveSchema
property includes a JsonPropertyName
attribute to specify its JSON representation. Documentation comments have been added to clarify the purpose of the new feature.
File Path | Change Summary |
---|---|
Deepgram/Models/Listen/v1/REST/PreRecordedSchema.cs | Added nullable property public bool? numerals { get; set; } to PreRecordedSchema . |
Deepgram/Models/Listen/v1/WebSocket/LiveSchema.cs | Added nullable property public bool? numerals { get; set; } to LiveSchema . |
Deepgram/Models/Listen/v1/WebSocket/LiveSchema.cs (1)
`206-212`: **LGTM!** The addition of the `numerals` property to the `LiveSchema` class is a well-implemented enhancement. Here are the positive aspects of the changes: - The property is clearly named and follows the naming convention used for other properties in the class. - The `JsonIgnore` and `JsonPropertyName` attributes are used appropriately to handle serialization and deserialization, ensuring consistency with the existing codebase. - The documentation comments provide a clear explanation of the property's purpose and include a link to the relevant documentation for further reference, improving the usability and maintainability of the code. Overall, the changes introduce a useful new feature while maintaining backward compatibility and adhering to the established coding practices in the codebase.Deepgram/Models/Listen/v1/REST/PreRecordedSchema.cs (1)
`250-256`: **LGTM!** The addition of the `numerals` property to the `PreRecordedSchema` class is a valuable enhancement that enables the conversion of numbers from written to numerical format. The property is properly annotated with `JsonIgnore` to exclude it from serialization when null, which aligns with the existing pattern used for other nullable properties in the class. The summary comment provides clear documentation for the new feature, making it easier for developers to understand its purpose and usage. This change is a non-breaking addition that does not disrupt existing functionality and enhances the flexibility and usability of the SDK for pre-recorded audio processing.
Proposed changes
add numerals query param for batch and streaming
Types of changes
What types of changes does your code introduce to the community .NET SDK? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
I did not test this.
Summary by CodeRabbit
numerals
, in both the PreRecordedSchema and LiveSchema classes to enhance numerical data handling in audio processing.