Skip to content

Instantly share code, notes, and snippets.

@inobo55
inobo55 / AVCaptureTestViewController.h
Created November 15, 2014 11:18
Rekognitionで顔認識 [ Objective-C ]
//
// AVCaptureTestViewController.h
//
// Created by inobo on 2014/11/15.
// Copyright (c) 2014年 private inobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@inobo55
inobo55 / AVCaptureTestViewController.m
Last active August 29, 2015 14:09
Rekognitionで顔認識 [ Objective-C ]
//
// AVCaptureTestViewController.m
//
//
// Created by inobo52 on 2014/11/15.
// Copyright (c) 2014年 private inobo. All rights reserved.
//
// この記事に助けられた
// http://stackoverflow.com/questions/24842108/capture-video-frames-sample-code-for-ios-7-0-and-up
@inobo55
inobo55 / VoicetotextController.h
Created November 10, 2014 17:21
音声認識 by docomo [Objective-C] header file
//
// ViewController.h
// VoiceTest
//
// Created by inobo52 on 2014/11/10.
// Copyright (c) 2014年 inobo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SRClientHelper.h"
@inobo55
inobo55 / VoicetotextController.m
Last active August 29, 2015 14:09
音声認識 by docomo [Objective-C]
//
// ViewController.m
// VoiceTest
//
// Created by inobo52 on 2014/11/10.
// Copyright (c) 2014年 inobo. All rights reserved.
//
#import "ViewController.h"
#import <AVFoundation/AVFoundation.h>
@inobo55
inobo55 / google_speech_api.php
Created October 27, 2014 17:17
PHPでGoogleSpeechAPIを使ってみた
<?php
/*
Google Speech APIを利用して
音声ファイルー>テキストを返すAPIを作成
参考サイト:
Twilio x Google Speech API ブログ
http://katsumi-takahashi.blogspot.jp/2013/12/twilio-twiliotranscribe-api-twilio.html
Google Speech APIFull Duplex PHP Version
@inobo55
inobo55 / AITalkAPI.php
Last active August 29, 2015 14:07
AITalkさんの音声合成APIを利用してみた
<?php
// WebAPI 仕様
// https://dev.smt.docomo.ne.jp/?p=docs.api.page&api_docs_id=71#tag01
// コード参考
// http://www.d-labo.net/laboratory/php/7001.php
// http://stackoverflow.com/questions/9412650/how-to-fix-411-length-required-error-with-file-get-contents-and-the-expedia-xml
// http://okwave.jp/qa/q8782761.html
 
@inobo55
inobo55 / ViewController.m
Last active August 29, 2015 14:06
Google Map SDK for iOSを利用する
//
// ViewController.m
//
// Created by inobo52 on 2014/09/19.
// Copyright (c) 2014年 All rights reserved.
//
//参考にしたURL
//http://iosguy.com/tag/directions-api/
//https://developers.google.com/maps/documentation/directions/?hl=ja#UnitSystems
@inobo55
inobo55 / event_controller.rb
Created September 13, 2014 08:22
RailsでJSONPのWebAPIを作ってみた
require "open-uri"
# nokogiriは既にインストール済み
class EventController < ApplicationController
# HTML解析に使うメソッド(getDoc, render_json)
def getDoc(url)
charset = nil
html = open(url) do |f|
charset = f.charset # 文字種別を取得
f.read # htmlを読み込んで変数htmlに渡す
@inobo55
inobo55 / korekae.rb
Last active August 29, 2015 14:06
Rubyで楽天APIとホットワードAPIを使ってみた
# encoding: utf-8
require "open-uri"
require "nokogiri"
class Korekae
def index
url = "http://kizasi.jp/kizapi.py?type=rank"
xml = open(url).read
doc = Nokogiri::XML(xml)