Git Product home page Git Product logo

fusionvoiceintegration's Introduction

FusionVoiceIntegration

First attempt to make an integration between Photon Voice and Photon Fusion

Main two components:

  • FusionVoiceBridge - requires NetworkRunner and VoiceConnection.
  • VoiceNetworkObject - NetworkBehaviour.

For test scene we added PrefabSpawner and dummy prefab that will playback .wav file via server set in Recorder (PrimaryRecorder).

How to use:

  1. Import Fusion here. (project tested with 0.8.0-Beta-Nightly-327
  2. Import Photon Voice 2 using Unity Package Manager or from Unity Asset Store (project tested with 2.27):
    • Uncheck "Photon\PhotonChat" and "Photon\PhotonUnityNetworking" folders.
    • Uncheck "Photon\PhotonVoice\Code\Pun" and "Photon\PhotonVoice\Demos" folders.
  3. Open the Photon App Settings using the menu item at Fusion\Realtime Settings. Get AppId of type Fusion and set it in Realtime Settings: "App Id Fusion".
  4. Get AppId of type Voice and set it in VoiceConnection component (under AppSettings) in prefab "Assets/VoiceFusionIntegration/Prefabs/Runner + Voice.prefab".

  1. Open the Fusion Network Project Settings using the menu item at Fusion\Network Project Config:
    • Click at Rebuild Object Table, so Fusion is aware of the Voice Prefab.
    • Click at Import Scenes from Build Settings, so Fusion update the list of known Scenes.
  2. Start an Host instance in Unity Editor by entering playmode (FusionVoiceGameScene): you are able to hear a recorded audio clip transmitted via Photon Voice.

  1. Disable 'Debug Echo' from Recorder component in PrimaryRecorder prefab ("Assets\VoiceFusionIntegration\Prefabs").
  2. Change 'Input Source Type' to 'Microphobe' from Recorder component in PrimaryRecorder prefab ("Assets\VoiceFusionIntegration\Prefabs").
  3. Build a Standalone Executable of the project:
    • Run one instance as a Host;
    • Run another instante as a Client;
  4. Once both are connected, you should be able to talk and be heard on the other end.

fusionvoiceintegration's People

Contributors

hamza-eg avatar ramonmelo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.