We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In simulator, there's no issue. However, when I initialize AudioContext in the iPhone, The beep sound is coming out.
AudioContext
Here's the code I used
export default function HomeScreen() { const [isConnected, setIsConnected] = useState(false); const audioContextRef = useRef<AudioContext | null>(null); const clientRef = useRef<RealtimeClient>( new RealtimeClient({ apiKey: process.env.EXPO_PUBLIC_OPENAI_API_KEY, dangerouslyAllowAPIKeyInBrowser: true, }) ); const connectConversation = async () => { console.log("connectConversation"); if (!audioContextRef.current) { audioContextRef.current = new AudioContext(); } } return ( <SafeAreaView> <View style={{ padding: 10 }}> <TouchableOpacity onPress={isConnected ? disconnectConversation : connectConversation} style={{ padding: 4 }} > <Text style={{ color: "red" }}> {isConnected ? "Disconnect" : "Connect"} </Text> </TouchableOpacity> </View> </SafeAreaView> );
npm install npx expo run:ios -d Tap connect button
connect
https://github.com/sgwanlee/react-natvie-audio-api-test
0.3.0-rc1
0.76.3
iOS
None
Expo Dev Client
iPhone 15 Pro, 18.1.1
Yes
The text was updated successfully, but these errors were encountered:
We have just published 0.3.0-rc2, It should have the issue resolved :)
Sorry, something went wrong.
It works! Thank you
michalsek
Successfully merging a pull request may close this issue.
Description
In simulator, there's no issue. However, when I initialize
AudioContext
in the iPhone, The beep sound is coming out.Here's the code I used
Steps to reproduce
npm install
npx expo run:ios -d
Tap
connect
buttonSnack or a link to a repository
https://github.com/sgwanlee/react-natvie-audio-api-test
React Native Audio API version
0.3.0-rc1
React Native version
0.76.3
Platforms
iOS
JavaScript runtime
None
Workflow
Expo Dev Client
Architecture
None
Build type
None
Device
None
Device model
iPhone 15 Pro, 18.1.1
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: