> For the complete documentation index, see [llms.txt](https://docs.wisej.com/ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.groqcloudendpointwhisper.md).

# GroqCloudEndpointWhisper

Namespace: **Wisej.AI.Endpoints**

Assembly: **Wisej.AI** (3.5.0.0)

* [SmartEndpoint](/ai/components/api/smartendpoint.md)
  * [SmartHttpEndpoint](/ai/components/api/smartendpoint/wisej.ai.endpoints.smarthttpendpoint.md)
    * [GroqCloudEndpointWhisper](/ai/components/api/smartendpoint/wisej.ai.endpoints.groqcloudendpointwhisper.md)

Represents a connection to GroqCloud speech endpoints for audio transcription.

{% tabs %}
{% tab title="C#" %}

```csharp
public class GroqCloudEndpointWhisper : SmartHttpEndpoint
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class GroqCloudEndpointWhisper
    Inherits SmartHttpEndpoint
```

{% endtab %}
{% endtabs %}

This class is used to interact with the GroqCloud API for converting audio inputs into text transcriptions using the Whisper model.

## Constructors

### ![](/files/ptrKjmmRoQB76pvrIqh0) GroqCloudEndpointWhisper()

Initializes a new instance of the [GroqCloudEndpointWhisper](/ai/components/api/smartendpoint/wisej.ai.endpoints.groqcloudendpointwhisper.md) class with default settings.

Sets the default authentication method, model, response format, and API URL.

## Properties

### ![](/files/ptrKjmmRoQB76pvrIqh0) Model

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the model used for audio transcription. (Default: `"whisper-large-v3"`)

### ![](/files/ptrKjmmRoQB76pvrIqh0) URL

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the URL for the GroqCloud API endpoint. (Default: `"https://api.groq.com/openai/v1/audio/transcriptions"`)

## Methods

### ![](/files/KL0Ik37djZRr8a07Wopd) AddMessages(payload, session, messages)

Adds user messages to the payload for the API request.

| Parameter    | Type                                                                                        | Description                               |
| ------------ | ------------------------------------------------------------------------------------------- | ----------------------------------------- |
| **payload**  | [Object](https://docs.microsoft.com/dotnet/api/system.object)                               | The payload to be sent to the API.        |
| **session**  | [SmartSession](/ai/components/api/smartsession.md)                                          | The current session containing user data. |
| **messages** | [IList\<Message>](https://docs.microsoft.com/dotnet/api/system.collections.generic.ilist-1) | The list of messages to be processed.     |

This method extracts the last user message and adds its binary and text content to the payload.

### ![](/files/KL0Ik37djZRr8a07Wopd) CreateContent(data)

Creates the HTTP content for the request.

| Parameter | Type                                                          | Description                             |
| --------- | ------------------------------------------------------------- | --------------------------------------- |
| **data**  | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The data to be included in the request. |

**Returns:** [HttpContent](https://docs.microsoft.com/dotnet/api/system.net.http.httpcontent). A [HttpContent](https://docs.microsoft.com/dotnet/api/system.net.http.httpcontent) object containing the request data.

This method constructs a multipart form data content from the provided data, supporting both binary and string content.

### ![](/files/KL0Ik37djZRr8a07Wopd) ReadAssistantMessage(response, message)

Reads the assistant's message from the API response.

| Parameter    | Type                                                                            | Description                                            |
| ------------ | ------------------------------------------------------------------------------- | ------------------------------------------------------ |
| **response** | [Response](/ai/components/api/smartendpoint/wisej.ai.smartendpoint.response.md) | The response received from the API.                    |
| **message**  | [Message](/ai/components/api/smartsession/wisej.ai.smartsession.message.md)     | The message object to populate with the response data. |

This method parses the response content and updates the message text accordingly.

### ![](/files/KL0Ik37djZRr8a07Wopd) ReadUsage(message, reply)

Reads the usage information from the API reply.

| Parameter   | Type                                                                        | Description                                   |
| ----------- | --------------------------------------------------------------------------- | --------------------------------------------- |
| **message** | [Message](/ai/components/api/smartsession/wisej.ai.smartsession.message.md) | The message object to update with usage data. |
| **reply**   | [Object](https://docs.microsoft.com/dotnet/api/system.object)               | The reply data from the API.                  |

This functionality is not supported in the current implementation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.groqcloudendpointwhisper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
