Compare commits
1 Commits
hush/usage
...
hush/backg
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
181cc43724 |
@@ -1,16 +1,29 @@
|
|||||||
import { type PropsWithChildren } from 'react';
|
import { type PropsWithChildren } from "react";
|
||||||
import { RTVIClient } from '@pipecat-ai/client-js';
|
import { RTVIClient } from "@pipecat-ai/client-js";
|
||||||
import { DailyTransport } from '@pipecat-ai/daily-transport';
|
import { DailyTransport } from "@pipecat-ai/daily-transport";
|
||||||
import { RTVIClientProvider } from '@pipecat-ai/client-react';
|
import { RTVIClientProvider } from "@pipecat-ai/client-react";
|
||||||
|
|
||||||
const transport = new DailyTransport();
|
const transport = new DailyTransport({
|
||||||
|
dailyFactoryOptions: {
|
||||||
|
inputSettings: {
|
||||||
|
video: {
|
||||||
|
processor: {
|
||||||
|
type: "background-blur",
|
||||||
|
config: {
|
||||||
|
strength: 0.8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const client = new RTVIClient({
|
const client = new RTVIClient({
|
||||||
transport,
|
transport,
|
||||||
params: {
|
params: {
|
||||||
baseUrl: 'http://localhost:7860',
|
baseUrl: "http://localhost:7860",
|
||||||
endpoints: {
|
endpoints: {
|
||||||
connect: '/connect',
|
connect: "/connect",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
enableMic: true,
|
enableMic: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user