Skip to content

Instantly share code, notes, and snippets.

[
{
"action": "talk",
"voiceName": "Russell",
"text": "Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is Russell. You are listening to a text-to-speech Call made with Nexmo's Voice API. Hi, this is
// Manifest.xml
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
// MainActivity.java
import android.location.LocationManager;
def create
@trail = Trail.new(trail_params)
@trail.user_id = current_user.id
if @trail.save
redirect_to trails_path, notice: "Trail #{@trail.name} was created"
else
render 'new'
end
end