Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions docs/tutorials/gemini-live-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ Create a Fishjam agent configured to match the audio format that the Google clie
<TabItem value="python" label="Python">

```python
from fishjam.peer import SubscribeOptions, SubscribeOptionsAudioSampleRate
from fishjam.agent import OutgoingAudioTrackOptions, TrackEncoding
from fishjam import AgentOptions
from fishjam.integrations.gemini import GeminiIntegration

room = fishjam_client.create_room()
Expand Down Expand Up @@ -178,12 +177,11 @@ Fishjam handles raw bytes, while Google GenAI SDKs often expect Base64 strings.
output: GI.geminiInputAudioSettings,
});

enum Modality {
AUDIO = 'AUDIO'
}


// ---cut---
import GeminiIntegration from '@fishjam-cloud/js-server-sdk/gemini';
import { Modality } from '@google/genai';

const GEMINI_MODEL = 'gemini-2.5-flash-native-audio-preview-12-2025'

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@fishjam-cloud/js-server-sdk": "link:./packages/js-server-sdk/packages/js-server-sdk",
"@fishjam-cloud/react-client": "link:./packages/web-client-sdk/packages/react-client",
"@fishjam-cloud/react-native-client": "link:./packages/mobile-client-sdk/packages/react-native-client",
"@google/genai": "^1.34.0",
"@mdx-js/react": "^3.1.0",
"@shikijs/rehype": "^3.6.0",
"@shikijs/transformers": "^3.6.0",
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.23.0/api/server-python/fishjam.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ True if livestream viewers can omit specifying a token.
```python
class AgentOptions:
```
Options specific to a WebRTC Peer.
Options specific to an Agent Peer.

Attributes:
- output: Configuration for the agent's output options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ Create a Fishjam agent configured to match the audio format that the Google clie
<TabItem value="python" label="Python">

```python
from fishjam.peer import SubscribeOptions, SubscribeOptionsAudioSampleRate
from fishjam.agent import OutgoingAudioTrackOptions, TrackEncoding
from fishjam import AgentOptions
from fishjam.integrations.gemini import GeminiIntegration

room = fishjam_client.create_room()
Expand All @@ -161,6 +160,7 @@ Fishjam handles raw bytes, while Google GenAI SDKs often expect Base64 strings.
<TabItem value="ts" label="TypeScript">
Now we setup the callbacks. We need to forward incoming Fishjam audio to Google, and forward incoming Google audio to Fishjam.
```ts
// @errors: 2307
import { FishjamClient } from '@fishjam-cloud/js-server-sdk';
import GI from '@fishjam-cloud/js-server-sdk/gemini';

Expand All @@ -178,12 +178,11 @@ Fishjam handles raw bytes, while Google GenAI SDKs often expect Base64 strings.
output: GI.geminiInputAudioSettings,
});

enum Modality {
AUDIO = 'AUDIO'
}


// ---cut---
import GeminiIntegration from '@fishjam-cloud/js-server-sdk/gemini';
import { Modality } from '@google/genai';

const GEMINI_MODEL = 'gemini-2.5-flash-native-audio-preview-12-2025'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ True if livestream viewers can omit specifying a token.
```python
class AgentOptions:
```
Options specific to a WebRTC Peer.
Options specific to an Agent Peer.

Attributes:
- output: Configuration for the agent's output options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ Create a Fishjam agent configured to match the audio format that the Google clie
<TabItem value="python" label="Python">

```python
from fishjam.peer import SubscribeOptions, SubscribeOptionsAudioSampleRate
from fishjam.agent import OutgoingAudioTrackOptions, TrackEncoding
from fishjam import AgentOptions
from fishjam.integrations.gemini import GeminiIntegration

room = fishjam_client.create_room()
Expand All @@ -161,6 +160,7 @@ Fishjam handles raw bytes, while Google GenAI SDKs often expect Base64 strings.
<TabItem value="ts" label="TypeScript">
Now we setup the callbacks. We need to forward incoming Fishjam audio to Google, and forward incoming Google audio to Fishjam.
```ts
// @errors: 2307
import { FishjamClient } from '@fishjam-cloud/js-server-sdk';
import GI from '@fishjam-cloud/js-server-sdk/gemini';

Expand All @@ -178,12 +178,11 @@ Fishjam handles raw bytes, while Google GenAI SDKs often expect Base64 strings.
output: GI.geminiInputAudioSettings,
});

enum Modality {
AUDIO = 'AUDIO'
}


// ---cut---
import GeminiIntegration from '@fishjam-cloud/js-server-sdk/gemini';
import { Modality } from '@google/genai';

const GEMINI_MODEL = 'gemini-2.5-flash-native-audio-preview-12-2025'

Expand Down
Loading